/**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->db = static::$dbo;
     $this->instance = new RelationDataMapper('flower', 'ww_flower');
     $this->instance->addTable('category', 'ww_categories', 'flower.catid = category.id');
 }
Example #2
0
 /**
  * Sets up the fixture, for example, opens a network connection.
  * This method is called before a test is executed.
  *
  * @return void
  */
 protected function setUp()
 {
     parent::setUp();
     $this->db = static::$dbo;
     $this->instance = new DataMapper('ww_flower');
 }