mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 11:28:25 +00:00
Adding documentation on tests
This commit is contained in:
parent
8f29f59c1a
commit
98e7575c5a
1 changed files with 25 additions and 0 deletions
|
@ -4082,6 +4082,11 @@ class DboSourceTest extends CakeTestCase {
|
||||||
$this->assertNoPattern('/Took:/s', $contents);
|
$this->assertNoPattern('/Took:/s', $contents);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* test fields generating usable virtual fields to use in query
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function testVirtualFields() {
|
function testVirtualFields() {
|
||||||
$this->loadFixtures('Article');
|
$this->loadFixtures('Article');
|
||||||
|
|
||||||
|
@ -4115,6 +4120,11 @@ class DboSourceTest extends CakeTestCase {
|
||||||
$this->assertEqual($expected,$result);
|
$this->assertEqual($expected,$result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* test conditions to generate query conditions for virtual fields
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function testVirtualFieldsInConditions() {
|
function testVirtualFieldsInConditions() {
|
||||||
$this->loadFixtures('Article');
|
$this->loadFixtures('Article');
|
||||||
|
|
||||||
|
@ -4146,6 +4156,11 @@ class DboSourceTest extends CakeTestCase {
|
||||||
$this->assertEqual($expected,$result);
|
$this->assertEqual($expected,$result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* test order to generate query order clause for virtual fields
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function testVirtualFieldsInOrder() {
|
function testVirtualFieldsInOrder() {
|
||||||
$this->loadFixtures('Article');
|
$this->loadFixtures('Article');
|
||||||
|
|
||||||
|
@ -4160,6 +4175,11 @@ class DboSourceTest extends CakeTestCase {
|
||||||
$this->assertEqual($expected,$result);
|
$this->assertEqual($expected,$result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* test calculate to generate claculate statements on virtual fields
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function testVirtualFieldsInCalculate() {
|
function testVirtualFieldsInCalculate() {
|
||||||
$this->loadFixtures('Article');
|
$this->loadFixtures('Article');
|
||||||
|
|
||||||
|
@ -4180,6 +4200,11 @@ class DboSourceTest extends CakeTestCase {
|
||||||
$this->assertEqual($expected,$result);
|
$this->assertEqual($expected,$result);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* test a full example of using virtual fields
|
||||||
|
*
|
||||||
|
* @return void
|
||||||
|
*/
|
||||||
function testVirtualFieldsFetch() {
|
function testVirtualFieldsFetch() {
|
||||||
$this->loadFixtures('Article','Comment');
|
$this->loadFixtures('Article','Comment');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue