Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
544e412a
Commit
544e412a
authored
11 years ago
by
Carsten Brandt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
unit test cleanup
parent
e996f3df
Hide whitespace changes
Inline
Side-by-side
Showing
21 changed files
with
17 additions
and
98 deletions
+17
-98
CommandTest.php
tests/unit/framework/db/CommandTest.php
+0
-6
ConnectionTest.php
tests/unit/framework/db/ConnectionTest.php
+0
-6
DatabaseTestCase.php
tests/unit/framework/db/DatabaseTestCase.php
+2
-1
QueryBuilderTest.php
tests/unit/framework/db/QueryBuilderTest.php
+0
-6
QueryTest.php
tests/unit/framework/db/QueryTest.php
+0
-6
CubridActiveRecordTest.php
tests/unit/framework/db/cubrid/CubridActiveRecordTest.php
+1
-5
CubridCommandTest.php
tests/unit/framework/db/cubrid/CubridCommandTest.php
+1
-5
CubridConnectionTest.php
tests/unit/framework/db/cubrid/CubridConnectionTest.php
+1
-5
CubridQueryTest.php
tests/unit/framework/db/cubrid/CubridQueryTest.php
+1
-5
MssqlActiveRecordTest.php
tests/unit/framework/db/mssql/MssqlActiveRecordTest.php
+1
-5
MssqlCommandTest.php
tests/unit/framework/db/mssql/MssqlCommandTest.php
+1
-5
MssqlConnectionTest.php
tests/unit/framework/db/mssql/MssqlConnectionTest.php
+1
-5
MssqlQueryTest.php
tests/unit/framework/db/mssql/MssqlQueryTest.php
+1
-5
PostgreSQLActiveRecordTest.php
tests/unit/framework/db/pgsql/PostgreSQLActiveRecordTest.php
+1
-5
PostgreSQLConnectionTest.php
tests/unit/framework/db/pgsql/PostgreSQLConnectionTest.php
+1
-5
PostgreSQLQueryBuilderTest.php
tests/unit/framework/db/pgsql/PostgreSQLQueryBuilderTest.php
+0
-2
SqliteActiveRecordTest.php
tests/unit/framework/db/sqlite/SqliteActiveRecordTest.php
+1
-5
SqliteCommandTest.php
tests/unit/framework/db/sqlite/SqliteCommandTest.php
+1
-5
SqliteConnectionTest.php
tests/unit/framework/db/sqlite/SqliteConnectionTest.php
+1
-5
SqliteQueryBuilderTest.php
tests/unit/framework/db/sqlite/SqliteQueryBuilderTest.php
+1
-1
SqliteQueryTest.php
tests/unit/framework/db/sqlite/SqliteQueryTest.php
+1
-5
No files found.
tests/unit/framework/db/CommandTest.php
View file @
544e412a
...
...
@@ -9,12 +9,6 @@ use yii\db\DataReader;
class
CommandTest
extends
DatabaseTestCase
{
protected
function
setUp
()
{
parent
::
setUp
();
$this
->
mockApplication
();
}
public
function
testConstruct
()
{
$db
=
$this
->
getConnection
(
false
);
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/ConnectionTest.php
View file @
544e412a
...
...
@@ -6,12 +6,6 @@ use yii\db\Connection;
class
ConnectionTest
extends
DatabaseTestCase
{
protected
function
setUp
()
{
parent
::
setUp
();
$this
->
mockApplication
();
}
public
function
testConstruct
()
{
$connection
=
$this
->
getConnection
(
false
);
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/DatabaseTestCase.php
View file @
544e412a
...
...
@@ -16,7 +16,6 @@ abstract class DatabaseTestCase extends TestCase
protected
function
setUp
()
{
parent
::
setUp
();
$this
->
mockApplication
();
$databases
=
$this
->
getParam
(
'databases'
);
$this
->
database
=
$databases
[
$this
->
driverName
];
$pdo_database
=
'pdo_'
.
$this
->
driverName
;
...
...
@@ -24,6 +23,7 @@ abstract class DatabaseTestCase extends TestCase
if
(
!
extension_loaded
(
'pdo'
)
||
!
extension_loaded
(
$pdo_database
))
{
$this
->
markTestSkipped
(
'pdo and pdo_'
.
$pdo_database
.
' extension are required.'
);
}
$this
->
mockApplication
();
}
protected
function
tearDown
()
...
...
@@ -31,6 +31,7 @@ abstract class DatabaseTestCase extends TestCase
if
(
$this
->
db
)
{
$this
->
db
->
close
();
}
$this
->
destroyApplication
();
}
/**
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/QueryBuilderTest.php
View file @
544e412a
...
...
@@ -12,12 +12,6 @@ use yii\db\cubrid\QueryBuilder as CubridQueryBuilder;
class
QueryBuilderTest
extends
DatabaseTestCase
{
protected
function
setUp
()
{
parent
::
setUp
();
$this
->
mockApplication
();
}
/**
* @throws \Exception
* @return QueryBuilder
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/QueryTest.php
View file @
544e412a
...
...
@@ -9,12 +9,6 @@ use yii\db\DataReader;
class
QueryTest
extends
DatabaseTestCase
{
protected
function
setUp
()
{
parent
::
setUp
();
$this
->
mockApplication
();
}
public
function
testSelect
()
{
// default
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/cubrid/CubridActiveRecordTest.php
View file @
544e412a
...
...
@@ -5,9 +5,5 @@ use yiiunit\framework\db\ActiveRecordTest;
class
CubridActiveRecordTest
extends
ActiveRecordTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'cubrid'
;
parent
::
setUp
();
}
public
$driverName
=
'cubrid'
;
}
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/cubrid/CubridCommandTest.php
View file @
544e412a
...
...
@@ -5,11 +5,7 @@ use yiiunit\framework\db\CommandTest;
class
CubridCommandTest
extends
CommandTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'cubrid'
;
parent
::
setUp
();
}
public
$driverName
=
'cubrid'
;
public
function
testBindParamValue
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/cubrid/CubridConnectionTest.php
View file @
544e412a
...
...
@@ -5,11 +5,7 @@ use yiiunit\framework\db\ConnectionTest;
class
CubridConnectionTest
extends
ConnectionTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'cubrid'
;
parent
::
setUp
();
}
public
$driverName
=
'cubrid'
;
public
function
testQuoteValue
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/cubrid/CubridQueryTest.php
View file @
544e412a
...
...
@@ -5,9 +5,5 @@ use yiiunit\framework\db\QueryTest;
class
CubridQueryTest
extends
QueryTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'cubrid'
;
parent
::
setUp
();
}
public
$driverName
=
'cubrid'
;
}
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/mssql/MssqlActiveRecordTest.php
View file @
544e412a
...
...
@@ -6,9 +6,5 @@ use yiiunit\framework\db\ActiveRecordTest;
class
MssqlActiveRecordTest
extends
ActiveRecordTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'sqlsrv'
;
parent
::
setUp
();
}
protected
$driverName
=
'sqlsrv'
;
}
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/mssql/MssqlCommandTest.php
View file @
544e412a
...
...
@@ -6,11 +6,7 @@ use yiiunit\framework\db\CommandTest;
class
MssqlCommandTest
extends
CommandTest
{
public
function
setUp
()
{
$this
->
driverName
=
'sqlsrv'
;
parent
::
setUp
();
}
protected
$driverName
=
'sqlsrv'
;
public
function
testAutoQuoting
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/mssql/MssqlConnectionTest.php
View file @
544e412a
...
...
@@ -6,11 +6,7 @@ use yiiunit\framework\db\ConnectionTest;
class
MssqlConnectionTest
extends
ConnectionTest
{
public
function
setUp
()
{
$this
->
driverName
=
'sqlsrv'
;
parent
::
setUp
();
}
protected
$driverName
=
'sqlsrv'
;
public
function
testQuoteValue
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/mssql/MssqlQueryTest.php
View file @
544e412a
...
...
@@ -6,9 +6,5 @@ use yiiunit\framework\db\QueryTest;
class
MssqlQueryTest
extends
QueryTest
{
public
function
setUp
()
{
$this
->
driverName
=
'sqlsrv'
;
parent
::
setUp
();
}
protected
$driverName
=
'sqlsrv'
;
}
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/pgsql/PostgreSQLActiveRecordTest.php
View file @
544e412a
...
...
@@ -6,9 +6,5 @@ use yiiunit\framework\db\ActiveRecordTest;
class
PostgreSQLActiveRecordTest
extends
ActiveRecordTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'pgsql'
;
parent
::
setUp
();
}
protected
$driverName
=
'pgsql'
;
}
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/pgsql/PostgreSQLConnectionTest.php
View file @
544e412a
...
...
@@ -5,11 +5,7 @@ use yiiunit\framework\db\ConnectionTest;
class
PostgreSQLConnectionTest
extends
ConnectionTest
{
public
function
setUp
()
{
$this
->
driverName
=
'pgsql'
;
parent
::
setUp
();
}
protected
$driverName
=
'pgsql'
;
public
function
testConnection
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/pgsql/PostgreSQLQueryBuilderTest.php
View file @
544e412a
...
...
@@ -2,13 +2,11 @@
namespace
yiiunit\framework\db\pgsql
;
use
yii\base\NotSupportedException
;
use
yii\db\pgsql\Schema
;
use
yiiunit\framework\db\QueryBuilderTest
;
class
PostgreSQLQueryBuilderTest
extends
QueryBuilderTest
{
public
$driverName
=
'pgsql'
;
public
function
columnTypes
()
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/sqlite/SqliteActiveRecordTest.php
View file @
544e412a
...
...
@@ -5,9 +5,5 @@ use yiiunit\framework\db\ActiveRecordTest;
class
SqliteActiveRecordTest
extends
ActiveRecordTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'sqlite'
;
parent
::
setUp
();
}
protected
$driverName
=
'sqlite'
;
}
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/sqlite/SqliteCommandTest.php
View file @
544e412a
...
...
@@ -5,11 +5,7 @@ use yiiunit\framework\db\CommandTest;
class
SqliteCommandTest
extends
CommandTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'sqlite'
;
parent
::
setUp
();
}
protected
$driverName
=
'sqlite'
;
public
function
testAutoQuoting
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/sqlite/SqliteConnectionTest.php
View file @
544e412a
...
...
@@ -5,11 +5,7 @@ use yiiunit\framework\db\ConnectionTest;
class
SqliteConnectionTest
extends
ConnectionTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'sqlite'
;
parent
::
setUp
();
}
protected
$driverName
=
'sqlite'
;
public
function
testConstruct
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/sqlite/SqliteQueryBuilderTest.php
View file @
544e412a
...
...
@@ -8,7 +8,7 @@ use yiiunit\framework\db\QueryBuilderTest;
class
SqliteQueryBuilderTest
extends
QueryBuilderTest
{
p
ublic
$driverName
=
'sqlite'
;
p
rotected
$driverName
=
'sqlite'
;
public
function
columnTypes
()
{
...
...
This diff is collapsed.
Click to expand it.
tests/unit/framework/db/sqlite/SqliteQueryTest.php
View file @
544e412a
...
...
@@ -5,9 +5,5 @@ use yiiunit\framework\db\QueryTest;
class
SqliteQueryTest
extends
QueryTest
{
protected
function
setUp
()
{
$this
->
driverName
=
'sqlite'
;
parent
::
setUp
();
}
protected
$driverName
=
'sqlite'
;
}
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment