Fix m_actionTest::testPurge()
This commit is contained in:
parent
943a1704be
commit
5f9cc21fd6
|
@ -241,7 +241,7 @@ class m_action {
|
|||
* @global m_messages $msg
|
||||
* @global m_mysql $db
|
||||
* @param type $all
|
||||
* @return boolean
|
||||
* @return boolean|int The number of rows purged; False is there was an error
|
||||
*/
|
||||
function purge($all = null) {
|
||||
global $msg, $db;
|
||||
|
|
|
@ -174,7 +174,7 @@ class m_actionTest extends AlterncTest {
|
|||
*/
|
||||
public function testPurge() {
|
||||
$result = $this->object->purge();
|
||||
$this->assertEquals(0, $result);
|
||||
$this->assertEquals(1, $result);
|
||||
$expectedTable = $this->loadDataSet("actions-empty.yml")->getTable("actions");
|
||||
$currentTable = $this->getConnection()->createQueryTable('actions', 'SELECT * FROM actions');
|
||||
$this->assertTablesEqual($expectedTable, $currentTable);
|
||||
|
|
Loading…
Reference in New Issue