Elgg\ActionsServiceTest::testCanRegisterActionWithoutFilename PHP Метод

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

    public function testCanRegisterActionWithoutFilename()
    {
        $this->assertTrue($this->actions->register('login'));
        $actions = $this->actions->getAllActions();
        $this->assertArrayHasKey('login', $actions);
        $this->assertEquals(['file' => realpath(Filesystem\Directory\Local::root()->getPath() . 'actions/login.php'), 'access' => 'logged_in'], $actions['login']);
    }
ActionsServiceTest