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 b9ac507 commit c76bc07
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 18 deletions.
34 changes: 17 additions & 17 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
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/188
*/
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 c76bc07

Please sign in to comment.