public function testDelete() { $bxObject = m::mock('object'); $bxObject->shouldReceive('delete')->once()->andReturn(true); TestSection::$bxObject = $bxObject; $section = new TestSection(1); $this->assertTrue($section->delete()); }
public function testDelete() { $bxObject = m::mock('object'); $bxObject->shouldReceive('delete')->once()->andReturn(true); TestSection::$bxObject = $bxObject; $section = new TestSection(1); $this->assertTrue($section->delete()); }