assertTrue(count($admin->read_language_file()) > 0); } function testHandleUpdateLanguages() { $admin = new WhatDidTheySayAdmin(); $admin->all_languages = array( 'en' => 'English', 'de' => 'German' ); $admin->handle_update_languages(array('en' => array(), 'de' => array('default' => 'yes'), 'meow' => array())); $this->assertEquals(array('en', array('code' => 'de', 'default' => true)), get_option('what-did-they-say-languages')); } } ?>