ソースを参照

Wrap long lines and fix incorrect assertions.

Refs #5911
Mark Story 11 年 前
コミット
fad068d845
1 ファイル変更7 行追加4 行削除
  1. 7 4
      tests/TestCase/ORM/AssociationTest.php

+ 7 - 4
tests/TestCase/ORM/AssociationTest.php

@@ -196,10 +196,13 @@ class AssociationTest extends TestCase
         $table = $this->association->target();
         $this->assertInstanceOf('TestPlugin\Model\Table\CommentsTable', $table);
 
-        $this->assertTrue(TableRegistry::exists('TestPlugin.ThisAssociationName'), 'The association class will use this registry key');
-        $this->assertFalse(TableRegistry::exists('TestPlugin.Comments', 'The association clas will NOT use this key'));
-        $this->assertFalse(TableRegistry::exists('Comments', 'Should also not be set'));
-        $this->assertFalse(TableRegistry::exists('ThisAssociationName', 'Should also not be set'));
+        $this->assertTrue(
+            TableRegistry::exists('TestPlugin.ThisAssociationName'),
+            'The association class will use this registry key'
+        );
+        $this->assertFalse(TableRegistry::exists('TestPlugin.Comments'), 'The association class will NOT use this key');
+        $this->assertFalse(TableRegistry::exists('Comments'), 'Should also not be set');
+        $this->assertFalse(TableRegistry::exists('ThisAssociationName'), 'Should also not be set');
 
         $plugin = TableRegistry::get('TestPlugin.ThisAssociationName');
         $this->assertSame($table, $plugin, 'Should be an instance of TestPlugin.Comments');