Browse Source

Fix failing tests.

mark_story 8 years ago
parent
commit
2d168c51a7
1 changed files with 3 additions and 5 deletions
  1. 3 5
      tests/TestCase/Filesystem/FileTest.php

+ 3 - 5
tests/TestCase/Filesystem/FileTest.php

@@ -4,7 +4,7 @@
  * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  * Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  *
  *
  * Licensed under The MIT License
  * Licensed under The MIT License
- * For full copyright and license information, please see the LICENSE.txt
+ * For full copyright and license information, please see the LICENSE
  * Redistributions of files must retain the above copyright notice
  * Redistributions of files must retain the above copyright notice
  *
  *
  * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
  * @copyright     Copyright (c) Cake Software Foundation, Inc. (https://cakefoundation.org)
@@ -66,7 +66,7 @@ class FileTest extends TestCase
      */
      */
     public function testBasic()
     public function testBasic()
     {
     {
-        $file = CORE_PATH . DS . 'LICENSE.txt';
+        $file = CORE_PATH . DS . 'LICENSE';
 
 
         $this->File = new File($file, false);
         $this->File = new File($file, false);
 
 
@@ -78,7 +78,6 @@ class FileTest extends TestCase
         $expecting = [
         $expecting = [
             'dirname' => dirname($file),
             'dirname' => dirname($file),
             'basename' => basename($file),
             'basename' => basename($file),
-            'extension' => 'txt',
             'filename' => 'LICENSE',
             'filename' => 'LICENSE',
             'filesize' => filesize($file),
             'filesize' => filesize($file),
             'mime' => 'text/plain'
             'mime' => 'text/plain'
@@ -93,8 +92,7 @@ class FileTest extends TestCase
         $this->assertEquals($expecting, $result);
         $this->assertEquals($expecting, $result);
 
 
         $result = $this->File->ext();
         $result = $this->File->ext();
-        $expecting = 'txt';
-        $this->assertEquals($expecting, $result);
+        $this->assertEquals('', $result);
 
 
         $result = $this->File->name();
         $result = $this->File->name();
         $expecting = 'LICENSE';
         $expecting = 'LICENSE';