plugin = $GLOBALS['wp-plugin-ffmeta'];
        $this->plugin->reinit_external_data_service(new MockDataService());
    }
    function test_post_ff_state() {
        $post_content = '[ff_state]';
        $post_attribs = array( 'post_title' => 'Test', 'post_content' => $post_content );
        $post = $this->factory->post->create_and_get( $post_attribs );
        // w/o filter:
        $this->assertEquals($post_content, $post->post_content);
        // with filter:
        $output = apply_filters( 'the_content', $post->post_content );
        $this->assertEquals("
429
\n", $output);
    }
    function test_post_ff_state_othercity() {
        $post_content = '[ff_state ffm]';
        $post_attribs = array( 'post_title' => 'Test', 'post_content' => $post_content );
        $post = $this->factory->post->create_and_get( $post_attribs );
        $output = apply_filters( 'the_content', $post->post_content );
        $this->assertEquals("\n", $output);
    }
    function test_post_ff_state_inv_city() {
        $post_content = '[ff_state jena]';
        $post_attribs = array( 'post_title' => 'Test', 'post_content' => $post_content );
        $post = $this->factory->post->create_and_get( $post_attribs );
        $output = apply_filters( 'the_content', $post->post_content );
        $this->assertRegExp('/