public function testAppNameNotSetWhenMissingInConfig() { $this->moduleOptions->setApplicationName(''); $this->client->expects($this->never())->method('setAppName'); $routeMatch = class_exists(RouteMatch::class) ? new RouteMatch([]) : new RouteMatchV2([]); $this->event->setRouteMatch($routeMatch); $this->listener->onRequest($this->event); }
public function testAppNameNotSetWhenMissingInConfig() { $this->moduleOptions->setApplicationName(""); $this->client->expects($this->never())->method('setAppName'); $routeMatch = new \Zend\Mvc\Router\RouteMatch(array()); $this->event->setRouteMatch($routeMatch); $this->listener->onRequest($this->event); }
public function testSetApplicationName() { $this->assertEmpty($this->moduleOptions->getApplicationName()); $this->moduleOptions->setApplicationName('foo'); $this->assertEquals('foo', $this->moduleOptions->getApplicationName()); }