]> git.immae.eu Git - github/wallabag/wallabag.git/commit - tests/Wallabag/CoreBundle/Controller/EntryControllerTest.php
Improve test failure readability
authorJeremy Benoist <jeremy.benoist@gmail.com>
Fri, 11 Mar 2016 08:42:08 +0000 (09:42 +0100)
committerJeremy Benoist <jeremy.benoist@gmail.com>
Sun, 20 Mar 2016 20:12:22 +0000 (21:12 +0100)
commit4f9cf232f8d4d750d39aca83406b8a6d5e17a6c9
treea8ee572196670730c593bc2781fad82ee7bce6d6
parent0d42217e4e8210dd2cf86f35ba9662ca02c8a2dc
Improve test failure readability

If the response content isn't the one expected, instead of checking into the whole DOM (with node tag, etc ..) we only check the text.
So if it fails, phpunit will display only the text, not all node tag. It'll be easier to read.
src/Wallabag/CoreBundle/Controller/ConfigController.php
src/Wallabag/CoreBundle/Tests/Controller/ConfigControllerTest.php
src/Wallabag/CoreBundle/Tests/Controller/EntryControllerTest.php