public function test_process_ShouldNotCreateADatabaseConnectionAtAnyTime() { $this->setDummyRequests(false); Queue\Factory::getSettings()->queueEnabled->getValue(); // this will cause a db query but will be cached afterwards Db::destroyDatabaseObject(); $this->handler->init($this->tracker, $this->requestSet); $this->assertNotDbConnectionCreated(); $this->handler->onStartTrackRequests($this->tracker, $this->requestSet); $this->assertNotDbConnectionCreated(); $this->handler->process($this->tracker, $this->requestSet); $this->assertNotDbConnectionCreated(); $this->handler->onAllRequestsTracked($this->tracker, $this->requestSet); $this->assertNotDbConnectionCreated(); $this->handler->finish($this->tracker, $this->requestSet); $this->assertNotDbConnectionCreated(); }