From c76bc07ee844fde045633211ec8543d0ff76e1b2 Mon Sep 17 00:00:00 2001 From: TavoNiievez Date: Mon, 18 Mar 2024 09:21:43 -0500 Subject: [PATCH] Add runSymfonyConsoleCommand issue test --- composer.lock | 34 ++++++++++++++++----------------- tests/Functional/IssuesCest.php | 13 ++++++++++++- 2 files changed, 29 insertions(+), 18 deletions(-) diff --git a/composer.lock b/composer.lock index f1e42d8..3090aa4 100644 --- a/composer.lock +++ b/composer.lock @@ -5902,12 +5902,12 @@ "source": { "type": "git", "url": "https://github.com/Codeception/module-symfony.git", - "reference": "e45d5af6ea7714d5d53acac33df48781b23afd2d" + "reference": "3bbf45cffb6c0bed16b088e48ba902c66a342a32" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/Codeception/module-symfony/zipball/e45d5af6ea7714d5d53acac33df48781b23afd2d", - "reference": "e45d5af6ea7714d5d53acac33df48781b23afd2d", + "url": "https://api.github.com/repos/Codeception/module-symfony/zipball/3bbf45cffb6c0bed16b088e48ba902c66a342a32", + "reference": "3bbf45cffb6c0bed16b088e48ba902c66a342a32", "shasum": "" }, "require": { @@ -5979,7 +5979,7 @@ "issues": "https://github.com/Codeception/module-symfony/issues", "source": "https://github.com/Codeception/module-symfony/tree/main" }, - "time": "2024-03-15T18:44:12+00:00" + "time": "2024-03-18T13:33:41+00:00" }, { "name": "codeception/stub", @@ -7286,21 +7286,21 @@ }, { "name": "nikic/php-parser", - "version": "v4.18.0", + "version": "v4.19.1", "source": { "type": "git", "url": "https://github.com/nikic/PHP-Parser.git", - "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999" + "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/1bcbb2179f97633e98bbbc87044ee2611c7d7999", - "reference": "1bcbb2179f97633e98bbbc87044ee2611c7d7999", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/4e1b88d21c69391150ace211e9eaf05810858d0b", + "reference": "4e1b88d21c69391150ace211e9eaf05810858d0b", "shasum": "" }, "require": { "ext-tokenizer": "*", - "php": ">=7.0" + "php": ">=7.1" }, "require-dev": { "ircmaxell/php-yacc": "^0.0.7", @@ -7336,9 +7336,9 @@ ], "support": { "issues": "https://github.com/nikic/PHP-Parser/issues", - "source": "https://github.com/nikic/PHP-Parser/tree/v4.18.0" + "source": "https://github.com/nikic/PHP-Parser/tree/v4.19.1" }, - "time": "2023-12-10T21:03:43+00:00" + "time": "2024-03-17T08:10:35+00:00" }, { "name": "pdepend/pdepend", @@ -8325,16 +8325,16 @@ }, { "name": "psy/psysh", - "version": "v0.12.1", + "version": "v0.12.2", "source": { "type": "git", "url": "https://github.com/bobthecow/psysh.git", - "reference": "39621c73e0754328252f032c6997b983afc50431" + "reference": "9185c66c2165bbf4d71de78a69dccf4974f9538d" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/bobthecow/psysh/zipball/39621c73e0754328252f032c6997b983afc50431", - "reference": "39621c73e0754328252f032c6997b983afc50431", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/9185c66c2165bbf4d71de78a69dccf4974f9538d", + "reference": "9185c66c2165bbf4d71de78a69dccf4974f9538d", "shasum": "" }, "require": { @@ -8398,9 +8398,9 @@ ], "support": { "issues": "https://github.com/bobthecow/psysh/issues", - "source": "https://github.com/bobthecow/psysh/tree/v0.12.1" + "source": "https://github.com/bobthecow/psysh/tree/v0.12.2" }, - "time": "2024-03-15T03:22:57+00:00" + "time": "2024-03-17T01:53:00+00:00" }, { "name": "ralouphie/getallheaders", diff --git a/tests/Functional/IssuesCest.php b/tests/Functional/IssuesCest.php index 0034006..433b991 100644 --- a/tests/Functional/IssuesCest.php +++ b/tests/Functional/IssuesCest.php @@ -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) @@ -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); + } }