3 namespace Friendica\Test\Util;
6 * Trait to mock the DBStructure connection status
8 trait DBStructureMockTrait
12 public function mockUpdate($args = [], $return = true, $times = null)
14 if (!isset($this->dbStructure)) {
15 $this->dbStructure = \Mockery::mock('alias:Friendica\Database\DBStructure');
19 ->shouldReceive('update')
25 public function mockExistsTable($tableName, $return = true, $times = null)
27 if (!isset($this->dbStructure)) {
28 $this->dbStructure = \Mockery::mock('alias:Friendica\Database\DBStructure');
32 ->shouldReceive('existsTable')