Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Not using staticExpects as it is gone in phpunit 4

  • Loading branch information...
commit 220578a537a4081f4b7b601144de43bb7a7e3851 1 parent 1eaf49e
@lorenzo lorenzo authored
Showing with 1 addition and 4 deletions.
  1. +1 −4 tests/TestCase/ORM/TableRegistryTest.php
View
5 tests/TestCase/ORM/TableRegistryTest.php
@@ -169,15 +169,12 @@ public function testBuildConvention() {
$this->assertInstanceOf('\TestApp\Model\Table\AuthorsTable', $table);
$class = $this->getMockClass('\Cake\ORM\Table');
- $class::staticExpects($this->once())
- ->method('defaultConnectionName')
- ->will($this->returnValue('test'));
if (!class_exists('MyPlugin\Model\Table\SuperTestsTable')) {
class_alias($class, 'MyPlugin\Model\Table\SuperTestsTable');
}
- $table = TableRegistry::get('MyPlugin.SuperTests');
+ $table = TableRegistry::get('MyPlugin.SuperTests', ['connection' => 'test']);
$this->assertInstanceOf($class, $table);
}
Please sign in to comment.
Something went wrong with that request. Please try again.