From f1c23ebf9442e03debc2bc0f17c6dcc52056a033 Mon Sep 17 00:00:00 2001
From: gloas <gloas@afi-sa.fr>
Date: Tue, 7 Feb 2017 16:54:43 +0100
Subject: [PATCH] dev #55145 reanimate no-ci tests

---
 .../SystemeControllerWebServicesTest.php        |  1 -
 .../controllers/NoticeAjaxControllerTest.php    | 16 ++--------------
 .../Class/Notice/DublinCoreVisitorTest.php      | 17 ++++++++---------
 3 files changed, 10 insertions(+), 24 deletions(-)

diff --git a/tests/application/modules/admin/controllers/SystemeControllerWebServicesTest.php b/tests/application/modules/admin/controllers/SystemeControllerWebServicesTest.php
index 385c52cf75f..671ef81813c 100644
--- a/tests/application/modules/admin/controllers/SystemeControllerWebServicesTest.php
+++ b/tests/application/modules/admin/controllers/SystemeControllerWebServicesTest.php
@@ -43,7 +43,6 @@ class SystemeControllerWebServicesIndexActionTest extends Admin_AbstractControll
 
 class SystemeControllerWebServicesActionTest extends Admin_AbstractControllerTestCase {
   /**
-   * @group no-ci
    * @group longtest
    * @group integration
    * @test
diff --git a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
index 33e751c02ca..9df873ab4a5 100644
--- a/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
+++ b/tests/application/modules/opac/controllers/NoticeAjaxControllerTest.php
@@ -1131,26 +1131,14 @@ class NoticeAjaxControllerVideoMorceauTest extends AbstractControllerTestCase {
   }
 
 
-
   /**
-   * @group no-ci
    * @group integration
    * @test
    */
-  public function responseShouldContainsPlayer() {
-    $this->assertXPath('//param[@name="movie"][contains(@value,"//youtube.googleapis.com/v/u-9koO1cQEI&source=uds&autoplay=1")]',
+  public function responseShouldContainsIframe() {
+    $this->assertXPath('//iframe[contains(@src, "http://www.ultimedia.com/swf/iframe_pub.php ")]',
                        $this->_response->getBody());
   }
-
-
-  /**
-   * @group no-ci
-   * @group integration
-   * @test
-   */
-  public function playerShouldHaveWidth300() {
-    $this->assertXPath('//object[@width="300"]', $this->_response->getBody());
-  }
 }
 
 
diff --git a/tests/library/Class/Notice/DublinCoreVisitorTest.php b/tests/library/Class/Notice/DublinCoreVisitorTest.php
index 3cc89606da5..e5bf8395a6a 100644
--- a/tests/library/Class/Notice/DublinCoreVisitorTest.php
+++ b/tests/library/Class/Notice/DublinCoreVisitorTest.php
@@ -16,10 +16,10 @@
  *
  * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
  * along with BOKEH; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA 
+ * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301  USA
  */
 
-abstract class DublinCoreVisitorTestCase extends Storm_Test_ModelTestCase { 
+abstract class DublinCoreVisitorTestCase extends Storm_Test_ModelTestCase {
   protected $_xpath;
   protected $_dublin_core_visitor;
 
@@ -28,14 +28,14 @@ abstract class DublinCoreVisitorTestCase extends Storm_Test_ModelTestCase {
     $this->_xpath = TestXPathFactory::newOaiDc();
     $this->_dublin_core_visitor = new Class_Notice_DublinCoreVisitor();
 
-    Class_CosmoVar::newInstanceWithId('nature_docs', 
+    Class_CosmoVar::newInstanceWithId('nature_docs',
                                       ['liste' =>  "1:Collection\r\n20:Manuscrit"]);
 
   }
 }
 
 
-class DublinCoreVisitorPotterTest extends DublinCoreVisitorTestCase { 
+class DublinCoreVisitorPotterTest extends DublinCoreVisitorTestCase {
   protected $_summary;
 
   public function setUp() {
@@ -71,8 +71,7 @@ class DublinCoreVisitorPotterTest extends DublinCoreVisitorTestCase {
 
   /**
    * @group integration
-   * @group no-ci
-   * @test 
+   * @test
    */
   public function xmlShouldBeValid() {
     $dom = new DOMDocument();
@@ -123,7 +122,7 @@ class DublinCoreVisitorPotterTest extends DublinCoreVisitorTestCase {
                                               '//oai_dc:dc/dc:contributor',
                                               'Couton, Patrick');
   }
-  
+
 
   /** @test */
   public function dateShouldBe2012() {
@@ -265,7 +264,7 @@ class DublinCoreVisitorPotterTest extends DublinCoreVisitorTestCase {
 }
 
 
-class DublinCoreVisitorSouvignyTest extends DublinCoreVisitorTestCase { 
+class DublinCoreVisitorSouvignyTest extends DublinCoreVisitorTestCase {
   public function setUp() {
     parent::setUp();
 
@@ -291,7 +290,7 @@ class DublinCoreVisitorSouvignyTest extends DublinCoreVisitorTestCase {
       ->with(Class_TypeDoc::LIVRE_NUM)
         ->answers(Class_TypeDoc::newInstanceWithId(Class_TypeDoc::LIVRE_NUM)
                      ->setLabel('livre numerise'));
-    
+
     Class_Album::newInstanceWithId(33, ['droits' => 'domaine public',
                                         'description' => '']);
 
-- 
GitLab