Skip to content

Commit c76bc07

Browse files
committed
Add runSymfonyConsoleCommand issue test
1 parent b9ac507 commit c76bc07

File tree

2 files changed

+29
-18
lines changed

2 files changed

+29
-18
lines changed

composer.lock

+17-17
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/Functional/IssuesCest.php

+12-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ public function keepDoctrineDbalConnection(FunctionalTester $I)
3333
$I->assertNotFalse($user);
3434
}
3535

36-
/**
36+
/**
3737
* @see https://github.com/Codeception/module-symfony/pull/185
3838
*/
3939
public function ensureFragmentsAreIgnored(FunctionalTester $I)
@@ -42,4 +42,15 @@ public function ensureFragmentsAreIgnored(FunctionalTester $I)
4242
$I->seeInCurrentRoute('app_register');
4343
$I->seeCurrentRouteIs('app_register');
4444
}
45+
46+
/**
47+
* @see https://github.com/Codeception/module-symfony/pull/188
48+
*/
49+
public function runSymfonyConsoleCommandIgnoresSpecificOptions(FunctionalTester $I)
50+
{
51+
$output = $I->runSymfonyConsoleCommand('doctrine:fixtures:load', ['-q']);
52+
$I->assertIsEmpty($output);
53+
$numRecords = $I->grabNumRecords(User::class);
54+
$I->assertSame(1, $numRecords);
55+
}
4556
}

0 commit comments

Comments
 (0)