|
|
@@ -1826,7 +1826,6 @@ class TableTest extends TestCase
|
|
|
$this->assertTrue($authors->Articles->exists(['id' => $articleId]));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* Test that save works with replace saveStrategy, replacing the already persisted entities even if no new entities are passed
|
|
|
*
|
|
|
@@ -2674,7 +2673,6 @@ class TableTest extends TestCase
|
|
|
$table->save($data);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* Tests that only the properties marked as dirty are actually saved
|
|
|
* to the database
|
|
|
@@ -4330,7 +4328,6 @@ class TableTest extends TestCase
|
|
|
|
|
|
$this->assertTrue($authors->Articles->link($author, $newArticles));
|
|
|
|
|
|
-
|
|
|
$this->assertCount($sizeArticles, $authors->Articles->findAllByAuthorId($author->id));
|
|
|
$this->assertCount($sizeArticles, $author->articles);
|
|
|
$this->assertFalse($author->dirty('articles'));
|
|
|
@@ -4557,7 +4554,6 @@ class TableTest extends TestCase
|
|
|
$authors->Articles->unlink($author, [$article]);
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* Integration test for replacing entities which depend on their source entity with HasMany and failing transaction. False should be returned when
|
|
|
* unlinking fails while replacing even when cascadeCallbacks is enabled
|
|
|
@@ -4646,7 +4642,6 @@ class TableTest extends TestCase
|
|
|
$this->assertCount($sizeArticles, $authors->Articles->findAllByAuthorId($author->id));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* Integration test for replacing entities with HasMany and an empty target list. The transaction must be successfull
|
|
|
*
|
|
|
@@ -4790,7 +4785,6 @@ class TableTest extends TestCase
|
|
|
$this->assertEquals((new Collection($newArticles))->extract('title'), (new Collection($author->articles))->extract('title'));
|
|
|
}
|
|
|
|
|
|
-
|
|
|
/**
|
|
|
* Integration test to show how to unlink a single record from a belongsToMany
|
|
|
*
|