mirror of
https://github.com/friendica/friendica
synced 2025-04-21 03:10:11 +00:00
Fix PConfiguration tests
- Replace uid = 0 (invalid uid) with 42 - Remove isConnected mocked calls for invalid uid test
This commit is contained in:
parent
cf70d0beb4
commit
ea6b02a1f5
3 changed files with 16 additions and 33 deletions
|
@ -108,16 +108,6 @@ class PreloadPConfigurationTest extends PConfigurationTest
|
|||
parent::testGetWithRefresh($uid, $data);
|
||||
}
|
||||
|
||||
|
||||
public function testGetWrongWithoutDB()
|
||||
{
|
||||
$this->configModel->shouldReceive('isConnected')
|
||||
->andReturn(false)
|
||||
->times(3);
|
||||
|
||||
parent::testGetWrongWithoutDB();
|
||||
}
|
||||
|
||||
/**
|
||||
* @dataProvider dataTests
|
||||
*/
|
||||
|
@ -138,7 +128,7 @@ class PreloadPConfigurationTest extends PConfigurationTest
|
|||
|
||||
// constructor loading
|
||||
$this->configModel->shouldReceive('load')
|
||||
->with(0)
|
||||
->with(42)
|
||||
->andReturn(['config' => []])
|
||||
->once();
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue