Fix PConfiguration tests
- Replace uid = 0 (invalid uid) with 42 - Remove isConnected mocked calls for invalid uid test
This commit is contained in:
@@ -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();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user