projects
/
m6w6
/
pq-gateway
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
|
github
raw
|
inline
| side by side
test fixups
[m6w6/pq-gateway]
/
tests
/
lib
/
pq
/
Gateway
/
CellTest.php
diff --git
a/tests/lib/pq/Gateway/CellTest.php
b/tests/lib/pq/Gateway/CellTest.php
index d7a8fc624c414a4a1b92bf44bbc4fd5862459fd4..fc08ba68f5efb743ca2eca593319f52e80a1bdd0 100644
(file)
--- a/
tests/lib/pq/Gateway/CellTest.php
+++ b/
tests/lib/pq/Gateway/CellTest.php
@@
-18,16
+18,14
@@
class CellTest extends \PHPUnit_Framework_TestCase {
protected function setUp() {
$this->conn = new \pq\Connection(PQ_TEST_DSN);
protected function setUp() {
$this->conn = new \pq\Connection(PQ_TEST_DSN);
- $this->conn->exec(PQ_TEST_TABLE_CREATE);
- $this->conn->exec(PQ_TEST_REFTABLE_CREATE);
- $this->conn->exec(PQ_TEST_DATA);
+ $this->conn->exec(PQ_TEST_SETUP_SQL);
Table::$defaultConnection = $this->conn;
$this->table = new Table("test");
Table::$defaultConnection = $this->conn;
$this->table = new Table("test");
+ $this->table->getQueryExecutor()->attach(new \QueryLogger());
}
protected function tearDown() {
}
protected function tearDown() {
- $this->conn->exec(PQ_TEST_REFTABLE_DROP);
- $this->conn->exec(PQ_TEST_TABLE_DROP);
+ $this->conn->exec(PQ_TEST_TEARDOWN_SQL);
}
/**
}
/**