Commit e21e628f authored by alexpott's avatar alexpott

Issue #2070045 by Wim Leers: Fixed EntityAccessCheckTest should use AccessCheckInterface::ALLOW.

parent 3569ce23
......@@ -9,6 +9,7 @@
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\Routing\Route;
use Drupal\Core\Access\AccessCheckInterface;
use Drupal\Core\Entity\EntityAccessCheck;
use Drupal\Tests\UnitTestCase;
......@@ -50,7 +51,7 @@ public function testAccess() {
$access_check = new EntityAccessCheck();
$request->attributes->set('node', $node);
$access = $access_check->access($route, $request);
$this->assertEquals(TRUE, $access);
$this->assertSame(AccessCheckInterface::ALLOW, $access);
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment