本文整理匯總了PHP中BookstoreEmptyTestBase類的典型用法代碼示例。如果您正苦於以下問題:PHP BookstoreEmptyTestBase類的具體用法?PHP BookstoreEmptyTestBase怎麽用?PHP BookstoreEmptyTestBase使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了BookstoreEmptyTestBase類的12個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: tearDown
protected function tearDown()
{
parent::tearDown();
$cr = new Criteria();
$cr->add(BookPeer::ID, $this->books, Criteria::IN);
BookPeer::doDelete($cr);
}
示例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';
}
示例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();
}
示例4: setUp
protected function setUp()
{
parent::setUp();
BookstoreDataPopulator::populate($this->con);
}
示例5: setUp
protected function setUp()
{
parent::setUp();
BookstoreDataPopulator::populate();
require_once 'tools/helpers/bookstore/validator/ISBNValidator.php';
}
示例6: setUp
protected function setUp()
{
parent::setUp();
BookstoreDataPopulator::populate();
require_once dirname(__FILE__) . '/../../../tools/helpers/bookstore/validator/ISBNValidator.php';
}
示例7: setUp
protected function setUp()
{
parent::setUp();
}
示例8: setUp
protected function setUp()
{
parent::setUp();
require_once 'tools/helpers/bookstore/behavior/TestAuthor.php';
}
示例9: tearDown
protected function tearDown()
{
parent::tearDown();
Propel::enableInstancePooling();
}
示例10: setUp
protected function setUp()
{
parent::setUp();
require_once dirname(__FILE__) . '/../../../../tools/helpers/bookstore/behavior/TestAuthor.php';
}
示例11: setUp
protected function setUp()
{
parent::setUp();
BookstoreDataPopulator::populate(null, true);
}
示例12: setUp
protected function setUp()
{
parent::setUp();
BookstoreDataPopulator::populate($this->con);
$this->books = PropelQuery::from('Book')->setFormatter(ModelCriteria::FORMAT_ON_DEMAND)->find();
}