AcAuthorityTest::testDefaultAliasActions PHP Method

testDefaultAliasActions() public method

    public function testDefaultAliasActions()
    {
        $this->assertEquals(['read'], $this->authority->getAliasesForAction('index'));
        $this->assertEquals(['read'], $this->authority->getAliasesForAction('show'));
        $this->assertEquals(['create'], $this->authority->getAliasesForAction('new'));
        $this->assertEquals(['create'], $this->authority->getAliasesForAction('store'));
        $this->assertEquals(['update'], $this->authority->getAliasesForAction('edit'));
        $this->assertEquals(['delete'], $this->authority->getAliasesForAction('destroy'));
        $this->assertEquals(['read', 'index', 'show'], $this->authority->getExpandActions('read'));
        $this->assertEquals(['create', 'new', 'store'], $this->authority->getExpandActions('create'));
        $this->assertEquals(['update', 'edit'], $this->authority->getExpandActions('update'));
        $this->assertEquals(['delete', 'destroy'], $this->authority->getExpandActions('delete'));
    }