Skip to content

Commit

Permalink
Add runSymfonyConsoleCommand issue test
Browse files Browse the repository at this point in the history
  • Loading branch information
TavoNiievez committed Mar 18, 2024
1 parent 60a1cde commit 4789b83
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 11 deletions.
20 changes: 10 additions & 10 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

13 changes: 12 additions & 1 deletion tests/Functional/IssuesCest.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ public function keepDoctrineDbalConnection(FunctionalTester $I)
$I->assertNotFalse($user);
}

/**
/**
* @see https://github.com/Codeception/module-symfony/pull/185
*/
public function ensureFragmentsAreIgnored(FunctionalTester $I)
Expand All @@ -42,4 +42,15 @@ public function ensureFragmentsAreIgnored(FunctionalTester $I)
$I->seeInCurrentRoute('app_register');
$I->seeCurrentRouteIs('app_register');
}

/**
* @see https://github.com/Codeception/module-symfony/pull/185
*/
public function runSymfonyConsoleCommandIgnoresSpecificOptions(FunctionalTester $I)
{
$output = $I->runSymfonyConsoleCommand('doctrine:fixtures:load', ['-q']);
$I->assertIsEmpty($output);
$numRecords = $I->grabNumRecords(User::class);
$I->assertSame(1, $numRecords);
}
}

0 comments on commit 4789b83

Please sign in to comment.