prophesize('oat\oatbox\user\User'); $user->getIdentifier()->willReturn('tastIdentifier\\_of_//User'); $this->user = $user->reveal(); } public function testConstruct() { $model = new NoAccess(); $this->assertInstanceOf('oat\generis\model\data\permission\PermissionInterface', $model); } public function testGetPermissions() { $model = new NoAccess(); $this->assertEquals(['res1' => []], $model->getPermissions($this->user, ['res1'])); $this->assertEquals(['res1' => [], 'res2' => []], $model->getPermissions($this->user, ['res1', 'res2'])); } public function testGetSupportedRights() { $model = new NoAccess(); $this->assertEquals([], $model->getSupportedRights()); } }