/** * @test */ public function adds_directory_to_collection_with_exclusion() { $backup = new Backup($this->dropboxInstance(), $this->working); $backup->addJob(new Job(new DirectoryJob($this->css_directory(), $this->assets, [$this->css_components_directory()]), 'directories')); $backup->prepare(); $backup->processDirectories(); $this->assertCount(1, $backup->getCollection()['directories'], 'There is more then 1 item in the "directories" collection'); }