예제 #1
0
 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());
 }