mirror of
https://git.sekbaer.de/Friendica/friendica.git
synced 2025-06-08 16:14:26 +02:00
Fix wrong $this->assert...()
with `self::assert...()
This commit is contained in:
parent
b3e5621d37
commit
efaec26b1d
63 changed files with 1192 additions and 1192 deletions
|
@ -41,22 +41,22 @@ class ProcessTest extends DatabaseTest
|
|||
{
|
||||
$process = new Process($this->dba);
|
||||
|
||||
$this->assertEquals(0, $this->dba->count('process'));
|
||||
self::assertEquals(0, $this->dba->count('process'));
|
||||
$process->insert('test', 1);
|
||||
$process->insert('test2', 2);
|
||||
$process->insert('test3', 3);
|
||||
|
||||
$this->assertEquals(3, $this->dba->count('process'));
|
||||
self::assertEquals(3, $this->dba->count('process'));
|
||||
|
||||
$this->assertEquals([
|
||||
self::assertEquals([
|
||||
['command' => 'test']
|
||||
], $this->dba->selectToArray('process', ['command'], ['pid' => 1]));
|
||||
|
||||
$process->deleteByPid(1);
|
||||
|
||||
$this->assertEmpty($this->dba->selectToArray('process', ['command'], ['pid' => 1]));
|
||||
self::assertEmpty($this->dba->selectToArray('process', ['command'], ['pid' => 1]));
|
||||
|
||||
$this->assertEquals(2, $this->dba->count('process'));
|
||||
self::assertEquals(2, $this->dba->count('process'));
|
||||
}
|
||||
|
||||
public function testDoubleInsert()
|
||||
|
@ -68,7 +68,7 @@ class ProcessTest extends DatabaseTest
|
|||
// double insert doesn't work
|
||||
$process->insert('test23', 1);
|
||||
|
||||
$this->assertEquals([['command' => 'test']], $this->dba->selectToArray('process', ['command'], ['pid' => 1]));
|
||||
self::assertEquals([['command' => 'test']], $this->dba->selectToArray('process', ['command'], ['pid' => 1]));
|
||||
}
|
||||
|
||||
public function testWrongDelete()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue