Closed
Description
I currently have 12 failing tests locally in a freshly updated 2.8 branch. I think something went wrong with one of the last PR regarding the voters as it's the legacy voters failing.
14:26:48 (feature/user-checkers<>) ~/projects/symfony$ phpunit src/Symfony/Component/Security/
WARNING USING SYSTEM VERSION OF phpunit, phpunit IS NOT AVAILABLE IN YOUR PROJECT
PHPUnit 4.6.4 by Sebastian Bergmann and contributors.
Configuration read from /home/ivanderberg/projects/symfony/phpunit.xml.dist
............................................................... 63 / 632 ( 9%)
............................................................... 126 / 632 ( 19%)
.......................................FFFFF....F.............. 189 / 632 ( 29%)
.................FFFFF....F.................................... 252 / 632 ( 39%)
............................................................... 315 / 632 ( 49%)
............................................................... 378 / 632 ( 59%)
............................................................... 441 / 632 ( 69%)
............................................................... 504 / 632 ( 79%)
............................................................... 567 / 632 ( 89%)
............................................................... 630 / 632 ( 99%)
S.
Time: 1.12 seconds, Memory: 32.75Mb
There were 12 failures:
1) Symfony\Component\Security\Core\Tests\Authorization\Voter\AbstractVoterTest::testVoteLegacy with data set #0 (array('EDIT'), 1, stdClass Object (), 'ACCESS_GRANTED if attribute a...access')
ACCESS_GRANTED if attribute and class are supported and attribute grants access
Failed asserting that 0 matches expected 1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
2) Symfony\Component\Security\Core\Tests\Authorization\Voter\AbstractVoterTest::testVoteLegacy with data set #1 (array('CREATE'), -1, stdClass Object (), 'ACCESS_DENIED if attribute an...access')
ACCESS_DENIED if attribute and class are supported and attribute does not grant access
Failed asserting that 0 matches expected -1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
3) Symfony\Component\Security\Core\Tests\Authorization\Voter\AbstractVoterTest::testVoteLegacy with data set #2 (array('DELETE', 'EDIT'), 1, stdClass Object (), 'ACCESS_GRANTED if one attribu...access')
ACCESS_GRANTED if one attribute is supported and grants access
Failed asserting that 0 matches expected 1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
4) Symfony\Component\Security\Core\Tests\Authorization\Voter\AbstractVoterTest::testVoteLegacy with data set #3 (array('DELETE', 'CREATE'), -1, stdClass Object (), 'ACCESS_DENIED if one attribut...access')
ACCESS_DENIED if one attribute is supported and denies access
Failed asserting that 0 matches expected -1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
5) Symfony\Component\Security\Core\Tests\Authorization\Voter\AbstractVoterTest::testVoteLegacy with data set #4 (array('CREATE', 'EDIT'), 1, stdClass Object (), 'ACCESS_GRANTED if one attribu...access')
ACCESS_GRANTED if one attribute grants access
Failed asserting that 0 matches expected 1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
6) Symfony\Component\Security\Core\Tests\Authorization\Voter\AbstractVoterTest::testNoOverriddenMethodsThrowsException
Failed asserting that exception of type "\BadMethodCallException" is thrown.
7) Symfony\Component\Security\Core\Tests\Authorization\Voter\LegacyAbstractVoterTest::testVoteLegacy with data set #0 (array('EDIT'), 1, stdClass Object (), 'ACCESS_GRANTED if attribute a...access')
ACCESS_GRANTED if attribute and class are supported and attribute grants access
Failed asserting that 0 matches expected 1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
8) Symfony\Component\Security\Core\Tests\Authorization\Voter\LegacyAbstractVoterTest::testVoteLegacy with data set #1 (array('CREATE'), -1, stdClass Object (), 'ACCESS_DENIED if attribute an...access')
ACCESS_DENIED if attribute and class are supported and attribute does not grant access
Failed asserting that 0 matches expected -1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
9) Symfony\Component\Security\Core\Tests\Authorization\Voter\LegacyAbstractVoterTest::testVoteLegacy with data set #2 (array('DELETE', 'EDIT'), 1, stdClass Object (), 'ACCESS_GRANTED if one attribu...access')
ACCESS_GRANTED if one attribute is supported and grants access
Failed asserting that 0 matches expected 1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
10) Symfony\Component\Security\Core\Tests\Authorization\Voter\LegacyAbstractVoterTest::testVoteLegacy with data set #3 (array('DELETE', 'CREATE'), -1, stdClass Object (), 'ACCESS_DENIED if one attribut...access')
ACCESS_DENIED if one attribute is supported and denies access
Failed asserting that 0 matches expected -1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
11) Symfony\Component\Security\Core\Tests\Authorization\Voter\LegacyAbstractVoterTest::testVoteLegacy with data set #4 (array('CREATE', 'EDIT'), 1, stdClass Object (), 'ACCESS_GRANTED if one attribu...access')
ACCESS_GRANTED if one attribute grants access
Failed asserting that 0 matches expected 1.
/home/ivanderberg/projects/symfony/src/Symfony/Component/Security/Core/Tests/Authorization/Voter/AbstractVoterTest.php:66
12) Symfony\Component\Security\Core\Tests\Authorization\Voter\LegacyAbstractVoterTest::testNoOverriddenMethodsThrowsException
Failed asserting that exception of type "\BadMethodCallException" is thrown.
FAILURES!
Tests: 632, Assertions: 1298, Failures: 12, Skipped: 1.
Legacy deprecation notices (29)
Metadata
Metadata
Assignees
Labels
No labels