Skip to content

Commit

Permalink
make the tests compatible with new changes
Browse files Browse the repository at this point in the history
  • Loading branch information
paknahad committed Nov 2, 2018
1 parent 575a919 commit d09115c
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
},
"require-dev": {
"friendsofphp/php-cs-fixer": "^2.8",
"symfony/maker-bundle": "^1.0",
"symfony/maker-bundle": "1.7",
"symfony/phpunit-bridge": "^3.4|^4.0",
"symfony/process": "^3.4|^4.0",
"phootwork/collection" : "~1",
Expand Down
2 changes: 1 addition & 1 deletion src/Test/MakerTestEnvironment.php
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ private function buildFlexSkeleton()
$this->processReplacements($replacements, $this->flexPath);

// fetch the packages needed for testing
MakerTestProcess::create('composer require symfony/psr-http-message-bridge woohoolabs/yin zendframework/zend-diactoros phpunit symfony/maker-bundle', $this->flexPath)
MakerTestProcess::create('composer require symfony/psr-http-message-bridge woohoolabs/yin zendframework/zend-diactoros phpunit symfony/maker-bundle symfony/security-bundle', $this->flexPath)
->run();

MakerTestProcess::create('php bin/console cache:clear --no-warmup', $this->flexPath)
Expand Down
5 changes: 2 additions & 3 deletions tests/maker/ApiCrudTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -50,9 +50,8 @@ public function getCommandTests()
$this->assertContains('created: src/JsonApi/Document/SweetFood/SweetFoodDocument.php', $output);
$this->assertContains('created: src/JsonApi/Document/SweetFood/SweetFoodsDocument.php', $output);
$this->assertContains('created: src/JsonApi/Transformer/SweetFoodResourceTransformer.php', $output);
$this->assertContains('created: src/JsonApi/Hydrator/SweetFood/AbstractSweetFoodHydrator.php', $output);
$this->assertContains('created: src/JsonApi/Hydrator/SweetFood/CreateSweetFoodHydrator.php', $output);
$this->assertContains('created: src/JsonApi/Hydrator/SweetFood/UpdateSweetFoodHydrator.php', $output);
$this->assertContains('created: src/JsonApi/Hydrator/SweetFoodHydrator.php', $output);
$this->assertContains('created: src/Security/SweetFoodVoter.php', $output);
$this->assertContains('created: collections/postman.json', $output);
$this->assertContains('created: collections/swagger.yaml', $output);
})
Expand Down

0 comments on commit d09115c

Please sign in to comment.