當前位置: 首頁>>代碼示例>>PHP>>正文


PHP BookstoreEmptyTestBase::setUp方法代碼示例

本文整理匯總了PHP中BookstoreEmptyTestBase::setUp方法的典型用法代碼示例。如果您正苦於以下問題:PHP BookstoreEmptyTestBase::setUp方法的具體用法?PHP BookstoreEmptyTestBase::setUp怎麽用?PHP BookstoreEmptyTestBase::setUp使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在BookstoreEmptyTestBase的用法示例。


在下文中一共展示了BookstoreEmptyTestBase::setUp方法的11個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: setUp

 protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate($this->con);
     Propel::disableInstancePooling();
     $this->books = PropelQuery::from('Book')->setFormatter(ModelCriteria::FORMAT_ON_DEMAND)->find();
 }
開發者ID:halfer,項目名稱:Meshing,代碼行數:7,代碼來源:PropelOnDemandCollectionTest.php

示例2: setUp

 protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate();
     $this->sampleLobFiles['tin_drum.gif'] = TESTS_BASE_DIR . '/etc/lob/tin_drum.gif';
     $this->sampleLobFiles['tin_drum.txt'] = TESTS_BASE_DIR . '/etc/lob/tin_drum.txt';
     $this->sampleLobFiles['propel.gif'] = TESTS_BASE_DIR . '/etc/lob/propel.gif';
 }
開發者ID:kcornejo,項目名稱:estadistica,代碼行數:8,代碼來源:GeneratedObjectLobTest.php

示例3: setUp

 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();
 }
開發者ID:halfer,項目名稱:Meshing,代碼行數:13,代碼來源:PropelObjectFormatterInheritanceTest.php

示例4: setUp

 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();
 }
開發者ID:dracony,項目名稱:forked-php-orm-benchmark,代碼行數:46,代碼來源:PropelPagerTest.php

示例5: setUp

 protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate($this->con);
 }
開發者ID:keneanung,項目名稱:gw2spidy,代碼行數:5,代碼來源:PropelObjectCollectionWithFixturesTest.php

示例6: setUp

 protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate();
     require_once 'tools/helpers/bookstore/validator/ISBNValidator.php';
 }
開發者ID:nextbigsound,項目名稱:propel-orm,代碼行數:6,代碼來源:ValidatorTest.php

示例7: setUp

 protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate();
     require_once dirname(__FILE__) . '/../../../tools/helpers/bookstore/validator/ISBNValidator.php';
 }
開發者ID:kalaspuffar,項目名稱:php-orm-benchmark,代碼行數:6,代碼來源:ValidatorTest.php

示例8: setUp

 protected function setUp()
 {
     parent::setUp();
 }
開發者ID:dracony,項目名稱:forked-php-orm-benchmark,代碼行數:4,代碼來源:GeneratedObjectRelTest.php

示例9: setUp

 protected function setUp()
 {
     parent::setUp();
     require_once 'tools/helpers/bookstore/behavior/TestAuthor.php';
 }
開發者ID:RadioCampusFrance,項目名稱:airtime,代碼行數:5,代碼來源:GeneratedObjectTest.php

示例10: setUp

 protected function setUp()
 {
     parent::setUp();
     require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/behavior/TestAuthor.php';
 }
開發者ID:ketheriel,項目名稱:ETVA,代碼行數:5,代碼來源:GeneratedObjectWithFixturesTest.php

示例11: setUp

 protected function setUp()
 {
     parent::setUp();
     BookstoreDataPopulator::populate(null, true);
 }
開發者ID:kcornejo,項目名稱:estadistica,代碼行數:5,代碼來源:PropelObjectFormatterTest.php


注:本文中的BookstoreEmptyTestBase::setUp方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。