Acl\Test\TestCase\Auth\CrudAuthorizeTest::testMapActionsSet PHP Method

testMapActionsSet() public method

test adding into mapActions
public testMapActionsSet ( ) : void
return void
    public function testMapActionsSet()
    {
        $map = ['create' => ['generate'], 'read' => ['listing', 'show'], 'update' => ['update'], 'random' => 'custom'];
        $result = $this->auth->mapActions($map);
        $this->assertNull($result);
        $result = $this->auth->mapActions();
        $expected = ['add' => 'create', 'index' => 'read', 'edit' => 'update', 'view' => 'read', 'delete' => 'delete', 'remove' => 'delete', 'generate' => 'create', 'listing' => 'read', 'show' => 'read', 'update' => 'update', 'random' => 'custom'];
        $this->assertEquals($expected, $result);
    }