Example #1
0
 public function testDisable()
 {
     $p = new Project($this->container);
     $this->assertEquals(1, $p->create(array('name' => 'UnitTest')));
     $this->assertTrue($p->disable(1));
     $this->assertTrue($p->enable(1));
     $project = $p->getById(1);
     $this->assertNotEmpty($project);
     $this->assertEquals(1, $project['is_active']);
     $this->assertFalse($p->enable(1234567));
 }