Skip to content

Commit

Permalink
Fix CS.
Browse files Browse the repository at this point in the history
  • Loading branch information
dereuromark committed Nov 2, 2016
1 parent e10dc8c commit f292f90
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 16 deletions.
18 changes: 9 additions & 9 deletions tests/TestCase/ORM/EntityTest.php
Expand Up @@ -32,7 +32,7 @@ class EntityTest extends TestCase
*/
public function testSetOneParamNoSetters()
{
$entity = new Entity;
$entity = new Entity();
$this->assertNull($entity->getOriginal('foo'));
$entity->set('foo', 'bar');
$this->assertEquals('bar', $entity->foo);
Expand All @@ -55,7 +55,7 @@ public function testSetOneParamNoSetters()
*/
public function testSetMultiplePropertiesNoSetters()
{
$entity = new Entity;
$entity = new Entity();
$entity->accessible('*', true);

$entity->set(['foo' => 'bar', 'id' => 1]);
Expand Down Expand Up @@ -376,7 +376,7 @@ public function testGetCamelCasedProperties()
*/
public function testMagicSet()
{
$entity = new Entity;
$entity = new Entity();
$entity->name = 'Jones';
$this->assertEquals('Jones', $entity->name);
$entity->name = 'George';
Expand Down Expand Up @@ -476,7 +476,7 @@ public function testMagicGetWithGetterTitleCase()
*/
public function testIndirectModification()
{
$entity = new Entity;
$entity = new Entity();
$entity->things = ['a', 'b'];
$entity->things[] = 'c';
$this->assertEquals(['a', 'b', 'c'], $entity->things);
Expand Down Expand Up @@ -1052,7 +1052,7 @@ public function testToArrayVirtualProperties()
*/
public function testErrors()
{
$entity = new Entity;
$entity = new Entity();
$this->assertEmpty($entity->errors());
$this->assertSame($entity, $entity->errors('foo', 'bar'));
$this->assertEquals(['bar'], $entity->errors('foo'));
Expand Down Expand Up @@ -1189,7 +1189,7 @@ public function testCleanRemovesErrors()
*/
public function testAccessible()
{
$entity = new Entity;
$entity = new Entity();
$entity->accessible('*', false);
$this->assertFalse($entity->accessible('foo'));
$this->assertFalse($entity->accessible('bar'));
Expand Down Expand Up @@ -1218,7 +1218,7 @@ public function testAccessible()
*/
public function testAccessibleAsArray()
{
$entity = new Entity;
$entity = new Entity();
$entity->accessible(['foo', 'bar', 'baz'], true);
$this->assertTrue($entity->accessible('foo'));
$this->assertTrue($entity->accessible('bar'));
Expand All @@ -1242,7 +1242,7 @@ public function testAccessibleAsArray()
*/
public function testAccessibleWildcard()
{
$entity = new Entity;
$entity = new Entity();
$entity->accessible(['foo', 'bar', 'baz'], true);
$this->assertTrue($entity->accessible('foo'));
$this->assertTrue($entity->accessible('bar'));
Expand Down Expand Up @@ -1374,7 +1374,7 @@ public function testDebugInfo()
*/
public function testSource()
{
$entity = new Entity;
$entity = new Entity();
$this->assertNull($entity->source());
$entity->source('foos');
$this->assertEquals('foos', $entity->source());
Expand Down
8 changes: 4 additions & 4 deletions tests/TestCase/ORM/TableTest.php
Expand Up @@ -5179,7 +5179,7 @@ public function testGet($options)
->setConstructorArgs([$this->connection, $table])
->getMock();

$entity = new Entity;
$entity = new Entity();
$table->expects($this->once())->method('query')
->will($this->returnValue($query));
$table->expects($this->once())->method('callFinder')
Expand Down Expand Up @@ -5229,7 +5229,7 @@ public function testGetWithCustomFinder($options)
->setConstructorArgs([$this->connection, $table])
->getMock();

$entity = new Entity;
$entity = new Entity();
$table->expects($this->once())->method('query')
->will($this->returnValue($query));
$table->expects($this->once())->method('callFinder')
Expand Down Expand Up @@ -5289,7 +5289,7 @@ public function testGetWithCache($options, $cacheKey, $cacheConfig)
->setConstructorArgs([$this->connection, $table])
->getMock();

$entity = new Entity;
$entity = new Entity();
$table->expects($this->once())->method('query')
->will($this->returnValue($query));
$table->expects($this->once())->method('callFinder')
Expand Down Expand Up @@ -5378,7 +5378,7 @@ public function testPatchEntity()
$table->expects($this->once())->method('marshaller')
->will($this->returnValue($marshaller));

$entity = new Entity;
$entity = new Entity();
$data = ['foo' => 'bar'];
$marshaller->expects($this->once())
->method('merge')
Expand Down
2 changes: 1 addition & 1 deletion tests/TestCase/View/Form/EntityContextTest.php
Expand Up @@ -182,7 +182,7 @@ public function testDefaultEntityError()
*/
public function testTableFromEntitySource()
{
$entity = new Entity;
$entity = new Entity();
$entity->source('Articles');
$context = new EntityContext($this->request, [
'entity' => $entity,
Expand Down
4 changes: 2 additions & 2 deletions tests/TestCase/View/Helper/FormHelperTest.php
Expand Up @@ -2684,8 +2684,8 @@ public function testFormValidationAssociatedSecondLevel()
*/
public function testFormValidationMultiRecord()
{
$one = new Entity;
$two = new Entity;
$one = new Entity();
$two = new Entity();
TableRegistry::get('Contacts', [
'className' => __NAMESPACE__ . '\ContactsTable'
]);
Expand Down

0 comments on commit f292f90

Please sign in to comment.