예제 #1
0
 public function testFill()
 {
     TestSection::$bxObject = m::mock('object');
     $section = new TestSection(1);
     $fields = ['ID' => 2, 'NAME' => 'Section 1'];
     $section->fill($fields);
     $this->assertSame(2, $section->id);
     $this->assertSame($fields, $section->fields);
     $this->assertSame($fields, $section->get());
 }