Conditions | 1 |
Paths | 1 |
Total Lines | 25 |
Code Lines | 17 |
Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 1 | Features | 1 |
1 | <?php |
||
17 | public function testReduceOldEmailsData() |
||
18 | { |
||
19 | $adapter = Mockery::mock(MySQLi::class)->makePartial(); |
||
20 | $adapter->shouldReceive('cleanData') |
||
21 | ->andReturnUsing(function ($data) { |
||
22 | return $data; |
||
23 | }); |
||
24 | |||
25 | $database = Mockery::mock(Connection::class)->makePartial(); |
||
26 | $database->shouldReceive('execute') |
||
27 | ->andReturnUsing(function ($query) { |
||
28 | return $query->getString(); |
||
29 | }); |
||
30 | $database->setAdapter($adapter); |
||
31 | |||
32 | $emails = new Emails(); |
||
33 | $emails->setDB($database); |
||
34 | |||
35 | $query = $emails->reduceOldEmailsData(); |
||
36 | |||
37 | self::assertSame( |
||
38 | 'UPDATE `emails` ' |
||
39 | . 'SET `vars` = \'\', `body` = \'\', `compiled_subject` = \'\', `compiled_body` = \'\' ' |
||
40 | . 'WHERE `date_sent` <= DATE_SUB(CURRENT_DATE(), INTERVAL 500 DAY)', |
||
41 | $query |
||
42 | ); |
||
53 |
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths