Make WordPress Core


Ignore:
Timestamp:
05/25/2016 06:20:24 PM (9 years ago)
Author:
boonebgorges
Message:

Add tests for get_bookmarks() cache.

This changeset adds a unit test factory so that bookmark/link fixtures can be
created during tests.

Why are we writing tests for functionality that has been deprecated for years?
Because it's the Right Thing to Do.

See #18356.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/tests/phpunit/includes/factory.php

    r36409 r37563  
    33require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-thing.php' );
    44require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-post.php' );
     5require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-bookmark.php' );
    56require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-attachment.php' );
    67require_once( dirname( __FILE__ ) . '/factory/class-wp-unittest-factory-for-user.php' );
Note: See TracChangeset for help on using the changeset viewer.