Skip to content
Permalink
Browse files

Coding standards fixups.

  • Loading branch information...
markstory committed Jul 4, 2013
1 parent 8f82ff5 commit 09b220f2b3214d10e510923421c235b7a194fd27
@@ -1088,7 +1088,7 @@ public function testSelectHaving() {
$this->assertEquals($expected, $result->fetchAll('assoc'));
$result = $query->having(function($e) {
return $e->add('count(author_id) = 1 + 1');
return $e->add('count(author_id) = 1 + 1');
}, [], true)
->execute();
$expected = [['total' => 2, 'author_id' => 1]];
@@ -1824,7 +1824,9 @@ public function testInsertFailureMixingTypesQueryFirst() {
*/
public function testSQLFunctions() {
$query = new Query($this->connection);
$result = $query->select(function($q) { return ['total' => $q->count('*')]; })
$result = $query->select(function($q) {
return ['total' => $q->count('*')];
})
->from('articles')
->execute();
$expected = [['total' => 3]];
@@ -19,8 +19,8 @@
*/
namespace Cake\Test\TestCase\Model;
use Cake\Core\App;
use Cake\Controller\Component\Acl\DbAcl;
use Cake\Core\App;
use Cake\Model\AclNode;
use Cake\TestSuite\TestCase;
@@ -23,8 +23,8 @@
use Cake\Model\Model;
use Cake\Model\ModelBehavior;
use Cake\Test\TestCase\Model\ModelTestBase;
use Cake\TestSuite\TestCase;
use Cake\Test\TestCase\Model\ModelTestBase;
/**
* Class ModelCrossSchemaHabtmTest
@@ -21,8 +21,8 @@
use Cake\Model\Model;
use Cake\Model\ModelBehavior;
use Cake\Test\TestCase\Model\ModelTestBase;
use Cake\TestSuite\TestCase;
use Cake\Test\TestCase\Model\ModelTestBase;
/**
* ModelDeleteTest
@@ -22,8 +22,8 @@
use Cake\Model\ConnectionManager;
use Cake\Model\Model;
use Cake\Model\ModelBehavior;
use Cake\Test\TestCase\Model\ModelTestBase;
use Cake\TestSuite\TestCase;
use Cake\Test\TestCase\Model\ModelTestBase;
use Cake\Utility\Hash;
/**
@@ -22,8 +22,8 @@
use Cake\Model\Datasource\DboSource;
use Cake\Model\Model;
use Cake\Model\ModelBehavior;
use Cake\Test\TestCase\Model\ModelTestBase;
use Cake\TestSuite\TestCase;
use Cake\Test\TestCase\Model\ModelTestBase;
/**
* ModelReadTest
@@ -22,8 +22,8 @@
use Cake\Model\Datasource\DboSource;
use Cake\Model\Model;
use Cake\Model\ModelBehavior;
use Cake\Test\TestCase\Model\ModelTestBase;
use Cake\TestSuite\TestCase;
use Cake\Test\TestCase\Model\ModelTestBase;
/**
* ModelValidationTest
@@ -22,8 +22,8 @@
use Cake\Model\Datasource\DboSource;
use Cake\Model\Model;
use Cake\Model\ModelBehavior;
use Cake\Test\TestCase\Model\ModelTestBase;
use Cake\TestSuite\TestCase;
use Cake\Test\TestCase\Model\ModelTestBase;
/**
* ModelWriteTest
@@ -16,19 +16,19 @@
*/
namespace Cake\TestSuite\Fixture;
use \Cake\TestSuite\TestCase;
use \Cake\TestSuite\Fixture\FixtureManager;
use \Exception;
use \PHPUnit_Framework_AssertionFailedError;
use \PHPUnit_Framework_Test;
use \PHPUnit_Framework_TestSuite;
use \PHPUnit_Framework_TestListener;
use Cake\TestSuite\TestCase;
use Cake\TestSuite\Fixture\FixtureManager;
/**
* Test listener used to inject a fixture manager in all tests that
* are composed inside a Test Suite
*/
class FixtureInjector implements \PHPUnit_Framework_TestListener {
class FixtureInjector implements PHPUnit_Framework_TestListener {
/**
* The instance of the fixture manager to use

0 comments on commit 09b220f

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