Skip to content

Commit

Permalink
Fix bad method calls
Browse files Browse the repository at this point in the history
  • Loading branch information
caendesilva committed Apr 1, 2022
1 parent a46d6a4 commit bf97253
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tests/Feature/CreatesNewPageSourceFileTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ public function test_that_an_exception_is_thrown_if_the_page_type_is_not_markdow
$this->expectException(\Exception::class);
$this->expectExceptionMessage('The page type must be either "markdown" or "blade"');

(new CreatesNewPageSourceFile('682072b Test Page', 'invalid'))->createPage('invalid');
(new CreatesNewPageSourceFile('682072b Test Page', 'invalid'));
}

// Test that a Markdown file can be created
public function test_that_a_markdown_file_can_be_created_and_contains_expected_content()
{
// Create the page
(new CreatesNewPageSourceFile('682072b Test Page'))->createMarkdownFile();
(new CreatesNewPageSourceFile('682072b Test Page'));

// Check that the file exists
$this->assertFileExists(
Expand All @@ -72,7 +72,7 @@ public function test_that_a_markdown_file_can_be_created_and_contains_expected_c
public function test_that_a_blade_file_can_be_created_and_contains_expected_content()
{
// Create the page
(new CreatesNewPageSourceFile('682072b Test Page', BladePage::class))->createBladeFile();
(new CreatesNewPageSourceFile('682072b Test Page', BladePage::class));

// Check that the file exists
$this->assertFileExists(
Expand Down

0 comments on commit bf97253

Please sign in to comment.