/** * Tests deleting a rule (deleting an empty role). * * @covers empire\framework\authorization\rolebased\RulesTable::deleteRule */ public function testDeleteRuleEmptyRole() { $this->instance->addRule('editor', '*', '*'); $this->instance->addRule('*', 'blog', array('write', 'read')); $this->instance->deleteRule('*', 'blog'); $expected = array('editor' => array('*' => '*')); $this->assertEquals($expected, $this->instance->getTable()); }
public function storeTable(RulesTable $table) { $this->storeAll($table->getTable()); }