public function __construct($label = false) { // Same package name as test 2 parent::__construct('test_model', $label); // Since a previous test needed to clear the db map, we need to rebuild it $this->resetDatabaseMap(BaseTestVersionTestOrganiserPeer::DATABASE_NAME, array('TestModelTestOrganiserTableMap', 'TestModelTestEventTableMap', 'TestModelKnownNodeTableMap')); $this->node = $this->createKnownNode(new TestModelKnownNode(), $this->conNode); }
public function __construct($label = false) { // This creates the system db and one node parent::__construct('test_model', $label); // This creates a copy of the same node on a second test connection $this->_testSqlRunner($runTests = false, $conName = Meshing_Utils::CONN_NODE_TEST_2); $this->conNode2 = Propel::getConnection(Meshing_Utils::CONN_NODE_TEST_2); // Set up a known node for the first node Meshing_Utils::initialiseNodeDbs('test_model'); $this->node1 = $this->createKnownNode(new TestModelKnownNode(), $this->conNode); }
public function __construct($label = false) { // Different package name to test 2 parent::__construct('test_version', $label); // Clear out old table map, create us a new one $this->resetDatabaseMap(BaseTestVersionTestOrganiserPeer::DATABASE_NAME, array('TestVersionTestOrganiserTableMap', 'TestVersionTestEventTableMap', 'TestVersionKnownNodeTableMap')); $this->node = $this->createKnownNode(new TestVersionKnownNode(), $this->conNode); // I've witnessed incorrect caching on 27 Nov 2011, might be due to my messing about // with Propel internals too much. Disabling pooling for tests :-0 Propel::disableInstancePooling(); }
public function __construct($label = false) { // Same package name as test 2 parent::__construct('test_model', $label); $this->node = $this->createKnownNode(new TestModelKnownNode(), $this->conNode); // Create/empty the log $logDir = Meshing_Utils::getProjectRoot() . Meshing_Utils::getPaths()->getTestLogPath(); $this->logFile = $logDir . '/' . LOCKING_TEST_LOG; file_put_contents($this->logFile, ''); // Create test row $organiser = new TestModelTestOrganiser(); $organiser->setCreatorNodeId($this->node->getPrimaryKey()); $organiser->setName('Mr. Toad'); $organiser->save($this->conNode); }