function test_populated_letters_linked() { $p = $this->factory->post->create(array('post_title' => 'Test Page', 'post_type' => 'page')); $q = new WP_Query(array('post_type' => 'page')); $expected = file_get_contents('tests/populated-letters-linked.txt'); $actual = get_the_a_z_letters($q, '/test-path'); $expected = preg_replace('/\\s{2,}|\\t|\\n/', '', $expected); $actual = preg_replace('/\\s{2,}|\\t|\\n/', '', $actual); $this->assertEquals($expected, $actual); }
/** * @deprecated in favour of get_the_a_z_letters() */ function get_the_az_letters($query = null, $target = false, $styling = false) { return get_the_a_z_letters($query, $target, $styling); }