1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-31 05:50:42 +02:00

[ticket/15286] Fix tests

PHPBB3-15286
This commit is contained in:
Rubén Calvo
2017-08-09 14:22:03 +02:00
parent ef43dbdcca
commit a176fa56ef
4 changed files with 25 additions and 35 deletions

View File

@@ -71,11 +71,12 @@ class delete
* @param resync $resync
* @param storage $storage
*/
public function __construct(config $config, driver_interface $db, dispatcher $dispatcher, resync $resync, $storage)
public function __construct(config $config, driver_interface $db, dispatcher $dispatcher, resync $resync, storage $storage)
{
$this->config = $config;
$this->db = $db;
$this->dispatcher = $dispatcher;
$this->resync = $resync;
$this->storage = $storage;
}
@@ -411,7 +412,7 @@ class delete
{
if ($this->storage->exists($filename))
{
$this->storage->remove($filename);
$this->storage->delete($filename);
return true;
}
}