MDL-54647 tests: Reverse order of expected and actual
authorDamyon Wiese <damyon@moodle.com>
Mon, 15 Aug 2016 08:34:11 +0000 (16:34 +0800)
committerDamyon Wiese <damyon@moodle.com>
Mon, 15 Aug 2016 08:34:11 +0000 (16:34 +0800)
lib/tests/unoconv_test.php

index 001e2e7..5357475 100644 (file)
@@ -79,16 +79,16 @@ class core_unoconv_testcase extends advanced_testcase {
 
         $result = $fs->get_converted_document($this->testfile1, 'pdf');
         $this->assertNotFalse($result);
-        $this->assertSame($result->get_mimetype(), 'application/pdf');
+        $this->assertSame('application/pdf', $result->get_mimetype());
         $this->assertGreaterThan(0, $result->get_filesize());
         $result = $fs->get_converted_document($this->testfile2, 'pdf');
         $this->assertNotFalse($result);
-        $this->assertSame($result->get_mimetype(), 'application/pdf');
+        $this->assertSame('application/pdf', $result->get_mimetype());
         $this->assertGreaterThan(0, $result->get_filesize());
         // Test forcing a refresh of the document.
         $result = $fs->get_converted_document($this->testfile2, 'pdf', true);
         $this->assertNotFalse($result);
-        $this->assertSame($result->get_mimetype(), 'application/pdf');
+        $this->assertSame('application/pdf', $result->get_mimetype());
         $this->assertGreaterThan(0, $result->get_filesize());
     }
 
@@ -103,17 +103,17 @@ class core_unoconv_testcase extends advanced_testcase {
 
         $result = $fs->get_converted_document($this->testfile1, 'txt');
         $this->assertNotFalse($result);
-        $this->assertSame($result->get_mimetype(), 'text/plain');
+        $this->assertSame('text/plain', $result->get_mimetype());
         $this->assertGreaterThan(0, $result->get_filesize());
         $result = $fs->get_converted_document($this->testfile2, 'txt');
         $this->assertNotFalse($result);
-        $this->assertSame($result->get_mimetype(), 'text/plain');
+        $this->assertSame('text/plain', $result->get_mimetype());
         $this->assertGreaterThan(0, $result->get_filesize());
 
         // Test forcing a refresh of the document.
         $result = $fs->get_converted_document($this->testfile2, 'txt', true);
         $this->assertNotFalse($result);
-        $this->assertSame($result->get_mimetype(), 'text/plain');
+        $this->assertSame('text/plain', $result->get_mimetype());
         $this->assertGreaterThan(0, $result->get_filesize());
     }
 }