Tests the getAttachedDisplays method.
public function testGetAttachedDisplays() {
$view = views_get_view('test_get_attach_displays');
// Both the feed_1 and the feed_2 display are attached to the page display.
$view
->setDisplay('page_1');
$this
->assertEqual($view->display_handler
->getAttachedDisplays(), array(
'feed_1',
'feed_2',
));
$view
->setDisplay('feed_1');
$this
->assertEqual($view->display_handler
->getAttachedDisplays(), array());
}