$this->assertTrue($tray->hasClass('toolbar-tray-horizontal'),'After toggling the orientation a second time the toolbar tray is displayed horizontally again.');
$this->assertElementVisible('#toolbar-item-administration-tray.toolbar-tray-vertical','After toggling the orientation the toolbar tray is now displayed vertically.');
$this->assertElementVisible('#toolbar-item-administration-tray.toolbar-tray-horizontal','After toggling the orientation a second time the toolbar tray is displayed horizontally again.');