public function test_append_can_be_cached()
 {
     $this->append->name('name');
     $this->append->url('url');
     $this->append->icon('icon');
     $serialized = serialize($this->append);
     $unserialized = unserialize($serialized);
     $this->assertInstanceOf('Maatwebsite\\Sidebar\\Append', $unserialized);
     $this->assertEquals('name', $unserialized->getName());
     $this->assertEquals('url', $unserialized->getUrl());
     $this->assertEquals('icon', $unserialized->getIcon());
 }
 public function test_can_add_a_append_instance()
 {
     $append = new DefaultAppend($this->container);
     $append->url('url');
     $this->item->addAppend($append);
     $this->assertInstanceOf('Illuminate\\Support\\Collection', $this->item->getAppends());
     $this->assertCount(1, $this->item->getAppends());
     $this->assertEquals('url', $this->item->getAppends()->first()->getUrl());
 }