CPTP_Util_Test::test_get_permalink_structure_from_option PHP Метод

    public function test_get_permalink_structure_from_option()
    {
        $post_type = rand_str(12);
        register_post_type($post_type, array("public" => true));
        update_option($post_type . "_structure", "/%year%/%monthnum%/%day%/%post_id%/");
        $this->assertEquals(CPTP_Util::get_permalink_structure($post_type), "/%year%/%monthnum%/%day%/%post_id%/");
    }