Пример #1
0
 public function testTableRelationshipsFindDependentMagic()
 {
     $row = new My_ZendDbTable_Row_TestMockRow();
     $this->assertNull($row->dependentTable);
     $this->assertNull($row->ruleKey);
     $row->findTable1();
     $this->assertEquals('Table1', $row->dependentTable);
     $this->assertNull($row->ruleKey);
     $row->findTable2ByRule1();
     $this->assertEquals('Table2', $row->dependentTable);
     $this->assertEquals('Rule1', $row->ruleKey);
 }