当前位置: 首页>>代码示例>>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;未经允许,请勿转载。