protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate($this->con);
     Propel::disableInstancePooling();
     $this->books = PropelQuery::from('\\Propel\\Tests\\Bookstore\\Book')->setFormatter(ModelCriteria::FORMAT_ON_DEMAND)->find();
 }
예제 #2
0
 public function setUp()
 {
     parent::setUp();
     PolymorphicRelationLogQuery::create()->deleteAll();
     BookQuery::create()->deleteAll();
     AuthorQuery::create()->deleteAll();
 }
예제 #3
0
 protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate();
     $this->sampleLobFiles['tin_drum.gif'] = TESTS_BASE_DIR . '/Fixtures/etc/lob/tin_drum.gif';
     $this->sampleLobFiles['tin_drum.txt'] = TESTS_BASE_DIR . '/Fixtures/etc/lob/tin_drum.txt';
     $this->sampleLobFiles['propel.gif'] = TESTS_BASE_DIR . '/Fixtures/etc/lob/propel.gif';
 }
 protected function setUp()
 {
     parent::setUp();
     $b1 = new BookstoreEmployee();
     $b1->setName('b1');
     $b1->save();
     $b2 = new BookstoreManager();
     $b2->setName('b2');
     $b2->save();
     $b3 = new BookstoreCashier();
     $b3->setName('b3');
     $b3->save();
 }
예제 #5
0
 protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate();
     $cr = new Criteria();
     $cr->add(AuthorPeer::LAST_NAME, "Rowling");
     $cr->add(AuthorPeer::FIRST_NAME, "J.K.");
     $rowling = AuthorPeer::doSelectOne($cr);
     $this->authorId = $rowling->getId();
     $book = new Book();
     $book->setTitle("Harry Potter and the Philosopher's Stone");
     $book->setISBN("1234");
     $book->setAuthor($rowling);
     $book->save();
     $this->books[] = $book->getId();
     $book = new Book();
     $book->setTitle("Harry Potter and the Chamber of Secrets");
     $book->setISBN("1234");
     $book->setAuthor($rowling);
     $book->save();
     $this->books[] = $book->getId();
     $book = new Book();
     $book->setTitle("Harry Potter and the Prisoner of Azkaban");
     $book->setISBN("1234");
     $book->setAuthor($rowling);
     $book->save();
     $this->books[] = $book->getId();
     $book = new Book();
     $book->setTitle("Harry Potter and the Goblet of Fire");
     $book->setISBN("1234");
     $book->setAuthor($rowling);
     $book->save();
     $this->books[] = $book->getId();
     $book = new Book();
     $book->setTitle("Harry Potter and the Half-Blood Prince");
     $book->setISBN("1234");
     $book->setAuthor($rowling);
     $book->save();
     $this->books[] = $book->getId();
     $book = new Book();
     $book->setTitle("Harry Potter and the Deathly Hallows");
     $book->setISBN("1234");
     $book->setAuthor($rowling);
     $book->save();
     $this->books[] = $book->getId();
 }
예제 #6
0
 protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate();
 }
예제 #7
0
 protected function setUp()
 {
     parent::setUp();
 }
 protected function setUp()
 {
     $this->markTestSkipped('not used anymore look if all tests are present in Query');
     parent::setUp();
     BookstoreDataPopulator::populate();
 }
 protected function setUp()
 {
     parent::setUp();
     require_once dirname(__FILE__) . '/../../../tools/helpers/bookstore/behavior/TestAuthor.php';
 }