From 54f6b1b4028ae99107239eba804d0834aa47b22b Mon Sep 17 00:00:00 2001
From: pbarroca <pbarroca@afi-sa.fr>
Date: Wed, 29 Nov 2017 17:07:15 +0100
Subject: [PATCH] dev #65267 : fix test

---
 .../admin/controllers/RecordsControllerTest.php    | 14 +-------------
 1 file changed, 1 insertion(+), 13 deletions(-)

diff --git a/tests/application/modules/admin/controllers/RecordsControllerTest.php b/tests/application/modules/admin/controllers/RecordsControllerTest.php
index 0a6861504d5..10637e8e9a7 100644
--- a/tests/application/modules/admin/controllers/RecordsControllerTest.php
+++ b/tests/application/modules/admin/controllers/RecordsControllerTest.php
@@ -325,12 +325,6 @@ class RecordsControllerBiographyTest extends RecordsControllerTestCase {
   public function formShouldHaveInputUrlAuteur() {
     $this->assertXPath('//form//input[@type="url"][@name="url_auteur"][contains(@placeholder, "ex: http://fr.wikipedia.org/wiki/Henri_Laborit")]');
   }
-
-
-  /** @test */
-  public function formShouldHaveSubmitButtonEnvoyer() {
-    $this->assertXPath('//form//input[@type="submit"][@value="Envoyer"]');
-  }
 }
 
 
@@ -399,12 +393,6 @@ class RecordsControllerTrailerTest extends RecordsControllerTestCase {
   public function formShouldHaveInputUrlTrailer() {
     $this->assertXPath('//form//input[@type="url"][@name="url_trailer"][contains(@placeholder, "ex: https://youtu.be/AUI12X")]');
   }
-
-
-  /** @test */
-  public function formShouldHaveSubmitButtonEnvoyer() {
-    $this->assertXPath('//form//input[@type="submit"][@value="Envoyer"]');
-  }
 }
 
 
@@ -416,7 +404,7 @@ class RecordsControllerTrailerPostTest extends RecordsControllerTestCase {
     $this->_http_client
       ->whenCalled('open_url')
       ->with('http://cache.org'
-             .'?url_trailer='.urlencode('http://youtu.be/BEPO2')
+             .'?url_trailer='.urlencode('https://youtu.be/BEPO2')
              .'&clef_oeuvre=HARRY_POTTER'
              .'&type_doc=1'
              .'&src='.Class_WebService_AllServices::createSecurityKey()
-- 
GitLab