Dev#27974 enlarge your search
Merge request reports
Activity
Filter activity
114 public function shouldContainsExtensionLinks() { 115 $this->assertXPathContentContains('//*', 'Rechercher aussi sur'); 116 } 117 118 119 /** @test */ 120 public function shouldContainsLink() { 121 $this->assertXPathContentContains('//a', 'Jumel'); 122 } 123 124 125 /** @test */ 126 public function hrefShouldContainsSport() { 127 $this->assertXPath('//a[contains(@href, "rechercher?search_api_views_fulltext=sport")]'); 128 } 129 121 $this->assertXPathContentContains('//a', 'Jumel'); 122 } 123 124 125 /** @test */ 126 public function hrefShouldContainsSport() { 127 $this->assertXPath('//a[contains(@href, "rechercher?search_api_views_fulltext=sport")]'); 128 } 129 130 131 /** @test */ 132 public function shouldNotDisplayIncompletLink() { 133 $this->assertNotXPathContentContains('//a', 'Incomplete'); 134 } 135 } 136 39 protected function _extensionSites() { 40 return ['site_label' => [''], 'site_url' => ['']]; 41 } 42 } 43 44 45 46 class RechercheControllerSearchExtensionDisabledTest 47 extends RechercheControllerSearchExtensionTestCase { 48 49 protected function _prepareFixtures() {} 50 51 /** @test */ 52 public function shouldNotContainsExtensionLinks() { 53 $this->assertNotXPathContentContains('//*', 'Rechercher aussi sur'); 54 }
Please register or sign in to reply