public function testGetLifetimeFrontend() { $areaCode = 'frontend'; $expectedLifetime = 234; $this->appStateMock->expects($this->once())->method('getAreaCode')->willReturn($areaCode); $this->scopeConfigMock->expects($this->once())->method('getValue')->with(Config::XML_PATH_COOKIE_LIFETIME, ScopeInterface::SCOPE_STORE)->willReturn($expectedLifetime); $this->assertEquals($this->config->getLifetime(), $expectedLifetime); }