AcControllerResourceTest::testNotLoadResourceInstanceIfAlreadySet PHP Метод

testNotLoadResourceInstanceIfAlreadySet() публичный Метод

Should not load resource into an instance variable if already set
    public function testNotLoadResourceInstanceIfAlreadySet()
    {
        $this->params = array_merge($this->params, ['action' => 'show', 'id' => '123']);
        $this->setProperty($this->controller, 'project', 'some_project');
        $resource = new Efficiently\AuthorityController\ControllerResource($this->controller);
        $resource->loadResource();
        $this->assertEquals($this->getProperty($this->controller, 'project'), 'some_project');
    }
AcControllerResourceTest