Admin_PluginsTest::test_filter_plugins PHP Метод

test_filter_plugins() публичный Метод

public test_filter_plugins ( )
    public function test_filter_plugins()
    {
        $plugins = array('hello-dolly/hello.php' => array('Name' => 'Hello Dolly', 'PluginURI' => 'http://wordpress.org/extend/plugins/hello-dolly/', 'Version' => '1.6', 'Description' => 'This is not just a plugin, it symbolizes the hope and enthusiasm of an entire generation summed up in two words sung most famously by Louis Armstrong: Hello, Dolly. When activated you will randomly see a lyric from <cite>Hello, Dolly</cite> in the upper right of your admin screen on every page.', 'Author' => 'Matt Mullenweg', 'AuthorURI' => 'http://ma.tt/', 'Title' => 'Hello Dolly', 'AuthorName' => 'Matt Mullenweg'), 'pressbooks-textbook/pressbooks-textbook.php' => array('Name' => 'Pressbooks Textbook', 'Version' => '2.1.2', 'Description' => 'A plugin that extends Pressbooks for textbook authoring', 'Author' => 'Brad Payne', 'AuthorURI' => 'http://bradpayne.ca', 'TextDomain' => 'pressbooks-textbook', 'DomainPath' => '/languages', 'Title' => 'Pressbooks Textbook', 'AuthorName' => 'Brad Payne'));
        $filtered_plugins = \Pressbooks\Admin\Plugins\filter_plugins($plugins);
        $this->assertArrayHasKey('pressbooks-textbook/pressbooks-textbook.php', $filtered_plugins);
    }