/** * Test remove items. * * @return void */ public function testRemove() { $options = ['title' => 'Bar', 'path' => '/my/path']; Nav::add('remove', 'simple', $options); $expected = ['simple' => Hash::merge(Nav::getDefaults(), $options)]; $this->assertSame($expected, Nav::items('remove')); Nav::remove('remove'); $this->assertSame([], Nav::items('remove')); }