storage test
[m6w6/pq-gateway] / tests / lib / pq / Mapper / MapperTest.php
index fa9a4c79f5a09736c54cb7c4277383541de0e38a..46120661b6759820947d1a523f09a0f2db5406d6 100644 (file)
@@ -4,6 +4,7 @@ namespace pq\Mapper;
 
 use pq\Connection;
 use pq\Gateway\Table;
+use QueryLogger;
 use RefTestModel;
 use stdClass;
 use TestModel;
@@ -34,6 +35,7 @@ class MapperTest extends \PHPUnit_Framework_TestCase
                Table::$defaultConnection = $this->conn;
                $this->mapper = new Mapper;
                $this->map = TestModel::mapAs($this->mapper);
+               $this->map->getGateway()->getQueryExecutor()->attach(new QueryLogger());
        }
 
        protected function tearDown() {