public function testActivate() { $bxObject = m::mock('object'); $bxObject->shouldReceive('update')->with(1, ['ACTIVE' => 'Y'])->once()->andReturn(true); TestSection::$bxObject = $bxObject; $section = new TestSection(1); $this->assertTrue($section->activate()); }