Exemplo n.º 1
0
 public function testRemove()
 {
     $projectModel = new Project($this->container);
     $actionModel = new Action($this->container);
     $this->assertEquals(1, $projectModel->create(array('name' => 'test')));
     $this->assertEquals(1, $actionModel->create(array('project_id' => 1, 'event_name' => Task::EVENT_CREATE, 'action_name' => '\\Kanboard\\Action\\TaskAssignColorColumn', 'params' => array('column_id' => 1, 'color_id' => 'red'))));
     $this->assertNotEmpty($actionModel->getById(1));
     $this->assertTrue($actionModel->remove(1));
     $this->assertEmpty($actionModel->getById(1));
 }