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
Merge "Base class for objects accessign databases."
[lhc/web/wiklou.git]
/
tests
/
phpunit
/
includes
/
db
/
TestORMRowTest.php
diff --git
a/tests/phpunit/includes/db/TestORMRowTest.php
b/tests/phpunit/includes/db/TestORMRowTest.php
index
c7bea3b
..
9739f4c
100644
(file)
--- a/
tests/phpunit/includes/db/TestORMRowTest.php
+++ b/
tests/phpunit/includes/db/TestORMRowTest.php
@@
-78,15
+78,24
@@
class TestORMRowTest extends ORMRowTest {
test_stuff BLOB NOT NULL,
test_moarstuff BLOB NOT NULL,
test_time varbinary(14) NOT NULL
test_stuff BLOB NOT NULL,
test_moarstuff BLOB NOT NULL,
test_time varbinary(14) NOT NULL
- );'
+ );',
+ __METHOD__
);
}
);
}
+ protected function tearDown() {
+ $dbw = wfGetDB( DB_MASTER );
+ $dbw->dropTable( 'orm_test', __METHOD__ );
+
+ parent::tearDown();
+ }
+
public function constructorTestProvider() {
return array(
array(
array(
'name' => 'Foobar',
public function constructorTestProvider() {
return array(
array(
array(
'name' => 'Foobar',
+ 'time' => '20120101020202',
'age' => 42,
'height' => 9000.1,
'awesome' => true,
'age' => 42,
'height' => 9000.1,
'awesome' => true,
@@
-155,7
+164,7
@@
class TestORMTable extends ORMTable {
'awesome' => 'bool',
'stuff' => 'array',
'moarstuff' => 'blob',
'awesome' => 'bool',
'stuff' => 'array',
'moarstuff' => 'blob',
- 'time' => '
int
', // TS_MW
+ 'time' => '
str
', // TS_MW
);
}
);
}