Browse Source

Remove unnecessary assertions.

ndm2 6 years ago
parent
commit
2e35feac52
1 changed files with 0 additions and 4 deletions
  1. 0 4
      tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php

+ 0 - 4
tests/TestCase/ORM/Behavior/TranslateBehaviorTest.php

@@ -1960,7 +1960,6 @@ class TranslateBehaviorTest extends TestCase
             ->first();
 
         $this->assertArrayNotHasKey('_locale', $result->comments);
-        $this->assertArrayHasKey('_locale', $result->_matchingData['Comments']);
         $this->assertEquals('abc', $result->_matchingData['Comments']->_locale);
     }
 
@@ -1992,8 +1991,6 @@ class TranslateBehaviorTest extends TestCase
             ->first();
 
         $this->assertArrayNotHasKey('_locale', $result->comments);
-        $this->assertArrayHasKey('_locale', $result->_matchingData['Comments']);
-        $this->assertArrayHasKey('_locale', $result->_matchingData['Authors']);
         $this->assertEquals('abc', $result->_matchingData['Comments']->_locale);
         $this->assertEquals('xyz', $result->_matchingData['Authors']->_locale);
     }
@@ -2031,7 +2028,6 @@ class TranslateBehaviorTest extends TestCase
 
         $this->assertArrayNotHasKey('_locale', $result->articles);
         $this->assertArrayNotHasKey('_locale', $result->articles[0]->tags);
-        $this->assertArrayHasKey('_locale', $result->articles[0]->_matchingData['Tags']);
         $this->assertEquals('abc', $result->articles[0]->_locale);
         $this->assertEquals('xyz', $result->articles[0]->_matchingData['Tags']->_locale);
     }