You appear to be a bot. Output may be restricted
Description
Test that factory methods are availableTry performing a post create and confirm the $id is not 0. Then we need to delete it.
Usage
Tests_WordPress::test_factory_methods_available();
Parameters
Returns
voidSource
File name: oik-batch/tests/test-wordpress.phpLines:
1 to 7 of 7
function test_factory_methods_available() { $id = self::factory()->post->create(); $this->assertGreaterThan( 0, $id ); wp_delete_post( $id, true ); }View on GitHub