dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Use MediaWikiCoversValidator for tests that don't use MediaWikiTestCase
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
libs
/
rdbms
/
database
/
DatabaseTest.php
diff --git
a/tests/phpunit/includes/libs/rdbms/database/DatabaseTest.php
b/tests/phpunit/includes/libs/rdbms/database/DatabaseTest.php
index
ee7ad2f
..
4a0a7e7
100644
(file)
--- a/
tests/phpunit/includes/libs/rdbms/database/DatabaseTest.php
+++ b/
tests/phpunit/includes/libs/rdbms/database/DatabaseTest.php
@@
-7,6
+7,8
@@
use Wikimedia\TestingAccessWrapper;
class DatabaseTest extends PHPUnit_Framework_TestCase {
class DatabaseTest extends PHPUnit_Framework_TestCase {
+ use MediaWikiCoversValidator;
+
protected function setUp() {
$this->db = new DatabaseTestHelper( __CLASS__ . '::' . $this->getName() );
}
protected function setUp() {
$this->db = new DatabaseTestHelper( __CLASS__ . '::' . $this->getName() );
}
@@
-120,6
+122,13
@@
class DatabaseTest extends PHPUnit_Framework_TestCase {
],
'table1 LEFT JOIN (table2 JOIN table3 ON ((t2_id = t3_id))) ON ((t1_id = t2_id))'
],
],
'table1 LEFT JOIN (table2 JOIN table3 ON ((t2_id = t3_id))) ON ((t1_id = t2_id))'
],
+ 'join with degenerate parenthesized group' => [
+ [ 'table1', 'n' => [ 't2' => 'table2' ] ],
+ [
+ 'n' => [ 'LEFT JOIN', 't1_id = t2_id' ],
+ ],
+ 'table1 LEFT JOIN table2 t2 ON ((t1_id = t2_id))'
+ ],
];
}
];
}