Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed formaiing and Successfully
  • Loading branch information
k-halaburda committed Aug 18, 2013
1 parent 2a27b37 commit 39f9d40
Showing 1 changed file with 22 additions and 24 deletions.
46 changes: 22 additions & 24 deletions lib/Cake/Test/Case/Model/ModelReadTest.php
Expand Up @@ -7990,8 +7990,7 @@ public function testRelatedAfterFindCallback() {
'foreignKey' => 'something_id'
)
)
)
);
));

$results = $Something->find('all');

Expand All @@ -8012,7 +8011,7 @@ public function testRelatedAfterFindCallback() {
'doomed' => true,
'created' => '2007-03-18 10:39:23',
'updated' => '2007-03-18 10:41:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
),
'HasMany' => array(
array(
Expand All @@ -8022,7 +8021,7 @@ public function testRelatedAfterFindCallback() {
'doomed' => true,
'created' => '2007-03-18 10:39:23',
'updated' => '2007-03-18 10:41:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
)
),
'SomethingElse' => array(
Expand All @@ -8033,12 +8032,12 @@ public function testRelatedAfterFindCallback() {
'published' => 'Y',
'created' => '2007-03-18 10:41:23',
'updated' => '2007-03-18 10:43:31',
'afterFind' => 'Successfuly added by AfterFind',
'afterFind' => 'Successfully added by AfterFind',
'JoinThing' => array(
'doomed' => true,
'something_id' => '1',
'something_else_id' => '2',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
)
)
)
Expand All @@ -8059,7 +8058,7 @@ public function testRelatedAfterFindCallback() {
'doomed' => false,
'created' => '2007-03-18 10:41:23',
'updated' => '2007-03-18 10:43:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
),
'HasMany' => array(
array(
Expand All @@ -8069,7 +8068,7 @@ public function testRelatedAfterFindCallback() {
'doomed' => false,
'created' => '2007-03-18 10:41:23',
'updated' => '2007-03-18 10:43:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
)
),
'SomethingElse' => array(
Expand All @@ -8080,12 +8079,12 @@ public function testRelatedAfterFindCallback() {
'published' => 'Y',
'created' => '2007-03-18 10:43:23',
'updated' => '2007-03-18 10:45:31',
'afterFind' => 'Successfuly added by AfterFind',
'afterFind' => 'Successfully added by AfterFind',
'JoinThing' => array(
'doomed' => false,
'something_id' => '2',
'something_else_id' => '3',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
)
)
)
Expand All @@ -8106,7 +8105,7 @@ public function testRelatedAfterFindCallback() {
'doomed' => true,
'created' => '2007-03-18 10:43:23',
'updated' => '2007-03-18 10:45:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
),
'HasMany' => array(
array(
Expand All @@ -8116,7 +8115,7 @@ public function testRelatedAfterFindCallback() {
'doomed' => true,
'created' => '2007-03-18 10:43:23',
'updated' => '2007-03-18 10:45:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
)
),
'SomethingElse' => array(
Expand All @@ -8127,26 +8126,25 @@ public function testRelatedAfterFindCallback() {
'published' => 'Y',
'created' => '2007-03-18 10:39:23',
'updated' => '2007-03-18 10:41:31',
'afterFind' => 'Successfuly added by AfterFind',
'afterFind' => 'Successfully added by AfterFind',
'JoinThing' => array(
'doomed' => true,
'something_id' => '3',
'something_else_id' => '1',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
)
)
)
)
);
$this->assertEquals($expected, $results, 'Model related with has* afterFind callback fail');
$this->assertEquals($expected, $results, 'Model related with has* afterFind callback fails');

$JoinThing = new JoinThing();
$JoinThing->unbindModel(array(
'belongsTo' => array(
'Something'
)
)
);
));
$results = $JoinThing->find('all');

$expected = array(
Expand All @@ -8158,7 +8156,7 @@ public function testRelatedAfterFindCallback() {
'doomed' => true,
'created' => '2007-03-18 10:39:23',
'updated' => '2007-03-18 10:41:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
),
'SomethingElse' => array(
'id' => '2',
Expand All @@ -8167,7 +8165,7 @@ public function testRelatedAfterFindCallback() {
'published' => 'Y',
'created' => '2007-03-18 10:41:23',
'updated' => '2007-03-18 10:43:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
)
),
array(
Expand All @@ -8178,7 +8176,7 @@ public function testRelatedAfterFindCallback() {
'doomed' => false,
'created' => '2007-03-18 10:41:23',
'updated' => '2007-03-18 10:43:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
),
'SomethingElse' => array(
'id' => '3',
Expand All @@ -8187,7 +8185,7 @@ public function testRelatedAfterFindCallback() {
'published' => 'Y',
'created' => '2007-03-18 10:43:23',
'updated' => '2007-03-18 10:45:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
)
),
array(
Expand All @@ -8198,7 +8196,7 @@ public function testRelatedAfterFindCallback() {
'doomed' => true,
'created' => '2007-03-18 10:43:23',
'updated' => '2007-03-18 10:45:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
),
'SomethingElse' => array(
'id' => '1',
Expand All @@ -8207,10 +8205,10 @@ public function testRelatedAfterFindCallback() {
'published' => 'Y',
'created' => '2007-03-18 10:39:23',
'updated' => '2007-03-18 10:41:31',
'afterFind' => 'Successfuly added by AfterFind'
'afterFind' => 'Successfully added by AfterFind'
)
)
);
$this->assertEquals($expected, $results, 'Model related with belongsTo afterFind callback fail');
$this->assertEquals($expected, $results, 'Model related with belongsTo afterFind callback fails');
}
}

0 comments on commit 39f9d40

Please sign in to comment.