Commit d203d119 authored by pookey's avatar pookey

CS corrections

parent 57b4a549
...@@ -37,8 +37,7 @@ class Doctrine_Record_ZeroValues_TestCase extends Doctrine_UnitTestCase { ...@@ -37,8 +37,7 @@ class Doctrine_Record_ZeroValues_TestCase extends Doctrine_UnitTestCase {
parent::prepareTables(); parent::prepareTables();
} }
public function prepareData() public function prepareData() {
{
$user = new MyUser2(); $user = new MyUser2();
$user['is_super_admin'] = 0; // set it to 0 and it should be 0 when we pull it back from the database $user['is_super_admin'] = 0; // set it to 0 and it should be 0 when we pull it back from the database
$user['username'] = 'jwage'; $user['username'] = 'jwage';
...@@ -48,7 +47,6 @@ class Doctrine_Record_ZeroValues_TestCase extends Doctrine_UnitTestCase { ...@@ -48,7 +47,6 @@ class Doctrine_Record_ZeroValues_TestCase extends Doctrine_UnitTestCase {
} }
public function testZeroValuesMaintained() { public function testZeroValuesMaintained() {
$q = new Doctrine_Query(); $q = new Doctrine_Query();
$q->from('MyUser2'); $q->from('MyUser2');
$users = $q->execute(); $users = $q->execute();
...@@ -57,10 +55,8 @@ class Doctrine_Record_ZeroValues_TestCase extends Doctrine_UnitTestCase { ...@@ -57,10 +55,8 @@ class Doctrine_Record_ZeroValues_TestCase extends Doctrine_UnitTestCase {
} }
} }
class MyUser2 extends Doctrine_Record class MyUser2 extends Doctrine_Record {
{ public function setTableDefinition() {
public function setTableDefinition()
{
$this->setTableName('my_user2'); $this->setTableName('my_user2');
$this->hasColumn('id', 'integer', 4, array ( 'primary' => true, 'autoincrement' => true,)); $this->hasColumn('id', 'integer', 4, array ( 'primary' => true, 'autoincrement' => true,));
...@@ -74,7 +70,5 @@ class MyUser2 extends Doctrine_Record ...@@ -74,7 +70,5 @@ class MyUser2 extends Doctrine_Record
$this->hasColumn('is_super_admin', 'boolean', null, array ( 'default' => false, 'notnull' => true,)); $this->hasColumn('is_super_admin', 'boolean', null, array ( 'default' => false, 'notnull' => true,));
} }
public function setUp() public function setUp() { }
{
}
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment