Closed dmonizer closed 6 years ago
Nice catch and congratulations on the first contribution!
Would you mind updating the tests for allrecipes.com as well?
Sorry I haven't gotten around to writing a contribution guide but it would look a bit like this:
./bin/test-tools html:get-host allrecipes.com
from the recipe-scraper
directory.tests/data/results/allrecipes.com
directory./vendor/bin/phpunit --filter=AllRecipesCom
to verify that everything is working as expected./vendor/bin/phpcs --standard=PSR2 src/Scrapers/AllRecipesCom.php
to verify coding standards are metThis should get the checks to pass on Travis and then I can merge.
Thanks!
I honestly don't understand, what's wrong, sorry :)
on my machine:
./vendor/bin/phpunit --filter=AllRecipesCom PHPUnit 6.5.5 by Sebastian Bergmann and contributors.
Runtime: PHP 7.0.22-0ubuntu0.16.04.1 with Xdebug 2.4.0 Configuration: /home/erik/repos/recipe-scraper/phpunit.xml
.. 2 / 2 (100%)
Time: 492 ms, Memory: 8.00MB
OK (2 tests, 10 assertions)
No worries 😄 - the problem was that the test HTML data needed an update. Everything looks good, thanks again for the help!
added categories for allrecipes.com. code from master did generate null for categories. My first ever open source contribution, so please bear with me :)