-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
121 changed files
with
347 additions
and
339 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,6 +24,7 @@ final class DescribeColumnsCest | |
|
||
/** | ||
* @param DatabaseTester $I | ||
* | ||
* @throws Exception | ||
*/ | ||
public function _before(DatabaseTester $I) | ||
|
@@ -38,16 +39,16 @@ public function _before(DatabaseTester $I) | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-03-02 | ||
* | ||
* @group mysql | ||
* @group mysql | ||
*/ | ||
public function dbAdapterPdoDescribeColumnsOnUpdate(DatabaseTester $I) | ||
{ | ||
$I->wantToTest('Db\Adapter\Pdo - describeColumns()'); | ||
|
||
$connection = $I->getConnection(); | ||
$db = $this->container->get('db'); | ||
$db = $this->container->get('db'); | ||
|
||
$now = date('Y-m-d H:i:s'); | ||
$now = date('Y-m-d H:i:s'); | ||
$migration = new ComplexDefaultMigration($connection); | ||
$migration->insert(1, $now, $now); | ||
|
||
|
@@ -63,16 +64,16 @@ public function dbAdapterPdoDescribeColumnsOnUpdate(DatabaseTester $I) | |
* @author Jeremy PASTOURET <https://github.com/jenovateurs> | ||
* @since 2020-03-09 | ||
* | ||
* @group pgsql | ||
* @group pgsql | ||
*/ | ||
public function dbAdapterPdoDescribeColumnsDefaultPostgres(DatabaseTester $I) | ||
{ | ||
$I->wantToTest('Db\Adapter\Pdo - describeColumns() - CheckPostgres Default value'); | ||
|
||
$connection = $I->getConnection(); | ||
$db = $this->container->get('db'); | ||
$db = $this->container->get('db'); | ||
|
||
$now = date('Y-m-d H:i:s'); | ||
$now = date('Y-m-d H:i:s'); | ||
$migration = new ComplexDefaultMigration($connection); | ||
$migration->insert(1, $now, $now); | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,16 +38,16 @@ public function _before(DatabaseTester $I) | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-22 | ||
* | ||
* @group pgsql | ||
* @group mysql | ||
* @group sqlite | ||
* @group pgsql | ||
* @group mysql | ||
* @group sqlite | ||
*/ | ||
public function dbAdapterPdoQuery(DatabaseTester $I) | ||
{ | ||
$I->wantToTest('Db\Adapter\Pdo - query()'); | ||
|
||
$connection = $I->getConnection(); | ||
$db = $this->container->get('db'); | ||
$db = $this->container->get('db'); | ||
|
||
$migration = new InvoicesMigration($connection); | ||
$migration->insert(1, 1, 1, 'title 1', 101); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ class ConstantsCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2018-10-26 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function checkClassConstants(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -25,7 +25,7 @@ class ConstructCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnConstruct(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class GetAfterPositionCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnGetAfterPosition(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class GetBindTypeCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnGetBindType(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class GetDefaultCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnGetDefault(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class GetNameCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnGetName(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class GetScaleCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnGetScale(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class GetSizeCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnGetSize(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class GetTypeCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnGetType(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class GetTypeReferenceCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnGetTypeReference(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class GetTypeValuesCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnGetTypeValues(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class IsFirstCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnIsFirst(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class IsNotNullCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnIsNotNull(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class IsNumericCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnIsNumeric(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class IsPrimaryCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnIsPrimary(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -26,7 +26,7 @@ class IsUnsignedCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbColumnIsUnsigned(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ class GetSetFinalTimeCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbProfilerItemGetSetFinalTime(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ class GetSetInitialTimeCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbProfilerItemGetSetInitialTime(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ class GetSetSqlBindTypesCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbProfilerItemGetSetSqlBindTypes(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ class GetSetSqlStatementCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbProfilerItemGetSetSqlStatement(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ class GetSetSqlVariablesCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbProfilerItemGetSetSqlVariables(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -24,7 +24,7 @@ class GetTotalElapsedSecondsCest | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group common | ||
* @group common | ||
*/ | ||
public function dbProfilerItemGetTotalElapsedSeconds(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -41,9 +41,9 @@ public function _before(DatabaseTester $I) | |
* @author Sid Roberts <https://github.com/SidRoberts> | ||
* @since 2019-04-18 | ||
* | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlite | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlite | ||
*/ | ||
public function mvcModelAssign(DatabaseTester $I) | ||
{ | ||
|
@@ -100,9 +100,9 @@ public function mvcModelAssign(DatabaseTester $I) | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-01-29 | ||
* | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlite | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlite | ||
*/ | ||
public function mvcModelAssignIncomplete(DatabaseTester $I) | ||
{ | ||
|
@@ -143,9 +143,9 @@ public function mvcModelAssignIncomplete(DatabaseTester $I) | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-13 | ||
* | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlite | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlite | ||
*/ | ||
public function mvcModelAssignAutoPrimary(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -33,9 +33,9 @@ public function _before(DatabaseTester $I) | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-01-30 | ||
* | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlites | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlites | ||
*/ | ||
public function mvcModelAverage(DatabaseTester $I) | ||
{ | ||
|
@@ -97,7 +97,7 @@ public function mvcModelAverage(DatabaseTester $I) | |
[ | ||
'column' => 'inv_total', | ||
'group' => 'inv_cst_id', | ||
'order' => 'inv_cst_id' | ||
'order' => 'inv_cst_id', | ||
] | ||
); | ||
$I->assertInstanceOf(Simple::class, $results); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -38,9 +38,9 @@ public function _before(DatabaseTester $I) | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-02-01 | ||
* | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlite | ||
* @group mysql | ||
* @group pgsql | ||
* @group sqlite | ||
*/ | ||
public function mvcModelConstruct(DatabaseTester $I) | ||
{ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -43,8 +43,8 @@ public function _before(DatabaseTester $I) | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-01-29 | ||
* | ||
* @group mysql | ||
* @group pgsql | ||
* @group mysql | ||
* @group pgsql | ||
*/ | ||
public function mvcModelCount(DatabaseTester $I) | ||
{ | ||
|
@@ -115,8 +115,8 @@ public function mvcModelCount(DatabaseTester $I) | |
* @author Phalcon Team <[email protected]> | ||
* @since 2020-01-29 | ||
* | ||
* @group mysql | ||
* @group pgsql | ||
* @group mysql | ||
* @group pgsql | ||
*/ | ||
public function mvcModelCountColumnMap(DatabaseTester $I) | ||
{ | ||
|
Oops, something went wrong.