$this->
assertEquals(1,
$usage[1
]->count, 'Correct count'
);
$this->
assertEquals(2,
$usage[2
]->count, 'Correct count'
);
} /**
* Tests file usage deletion when files are made temporary.
*/
public function testRemoveUsageTemporary() { $this->
config('file.settings'
) ->
set('make_unused_managed_files_temporary', TRUE
) ->
save();
$file =
$this->
doTestRemoveUsage();
$this->
assertTrue($file->
isTemporary());
} /**
* Tests file usage deletion when files are made temporary.
*/
public function testRemoveUsageNonTemporary() { $this->
config('file.settings'
) ->
set('make_unused_managed_files_temporary', FALSE
) ->
save();
$file =
$this->
doTestRemoveUsage();