public function getConnection() { $q = new SelectQuery(); $this->assertNull($q->getConnection()); $q->setPeer(Job::getPeer()); $this->assertInstanceOf(MockConnection::class, $q->getConnection()); }
public function getConnection() { $q = new SelectQuery(); $this->assertNull($q->getConnection()); $q->setPeer(Job::getPeer()); $this->assertClass($q->getConnection(), 'net.xp_framework.unittest.rdbms.mock.MockConnection'); }