/** * Test referrer is search engine. * * @dataProvider dataReferrerIsSearchEngine */ public function testReferrerIsSearchEngine($referrer, $isSearchEngine) { $this->session->expects($this->any())->method('get')->will($this->returnValue($referrer)); $this->assertEquals($isSearchEngine, $this->referrerProvider->referrerIsSearchEngine()); }
/** * Return if the referrer is a search engine * * @return string Referrer is search engine */ public function referrerIsSearchEngine() { return (int) $this->referrerProvider->referrerIsSearchEngine(); }