/** * @test */ public function getSearchResultsEmptyQuery() { $urlParamsMapper = new UrlParamsMapper(); $request = new Request(); $request->initialize(array($urlParamsMapper->getQueryParamName() => '', $urlParamsMapper->getLanguageParamName() => '')); $manager = new GithubManager($request); $resultSet = $manager->getSearchResults(); $this->assertFalse($resultSet->success); $this->assertCount(0, $resultSet->results); $this->assertNull($resultSet->message); }
/** * @test */ public function getLanguageParamName() { $this->assertEquals('language', $this->_mapper->getLanguageParamName()); }