// Test chained set()->save().
$chained_name = 'biff.bang';
$config =
$this->
config($chained_name);
$config->
set($key,
$value)->
save();
// Verify the database entry exists from a chained save.
$data =
$storage->
read($chained_name);
$this->
assertEquals($config->
get(),
$data);
// Get file listing for all files starting with 'foo'. Should return
// two elements.
$files =
$storage->
listAll('foo'
);
$this->
assertCount(2,
$files, 'Two files listed with the prefix \'foo\'.'
);
// Get file listing for all files starting with 'biff'. Should return
// one element.
$files =
$storage->
listAll('biff'
);
$this->
assertCount(1,
$files, 'One file listed with the prefix \'biff\'.'
);
// Get file listing for all files starting with 'foo.bar'. Should return
// one element.
$files =
$storage->
listAll('foo.bar'
);
$this->
assertCount(1,
$files, 'One file listed with the prefix \'foo.bar\'.'
);