Skip to content
Permalink
Browse files

Fix tests

  • Loading branch information...
ADmad committed Mar 29, 2015
1 parent 51d9247 commit f510b616aed4baecf783e74e1cd622ff974930a8
Showing with 1 addition and 3 deletions.
  1. +1 −3 tests/TestCase/ORM/TableRegistryTest.php
@@ -275,7 +275,7 @@ public function testGetWithConventions()
public function testGetPlugin()
{
Plugin::load('TestPlugin');
$table = TableRegistry::get('TestPlugin.TestPluginComments', ['connection' => 'test']);
$table = TableRegistry::get('TestPlugin.TestPluginComments');
$this->assertInstanceOf('TestPlugin\Model\Table\TestPluginCommentsTable', $table);
$this->assertFalse(
@@ -330,7 +330,6 @@ public function testGetPluginWithClassNameOption()
Plugin::load('TestPlugin');
$table = TableRegistry::get('Comments', [
'className' => 'TestPlugin.TestPluginComments',
'connection' => 'test'
]);
$class = 'TestPlugin\Model\Table\TestPluginCommentsTable';
$this->assertInstanceOf($class, $table);
@@ -353,7 +352,6 @@ public function testGetPluginWithFullNamespaceName()
$class = 'TestPlugin\Model\Table\TestPluginCommentsTable';
$table = TableRegistry::get('Comments', [
'className' => $class,
'connection' => 'test'
]);
$this->assertInstanceOf($class, $table);
$this->assertFalse(TableRegistry::exists('TestPluginComments'), 'Class name should not exist');

0 comments on commit f510b61

Please sign in to comment.
You can’t perform that action at this time.