Skip to content

Commit

Permalink
Test functions.php
Browse files Browse the repository at this point in the history
  • Loading branch information
A5hleyRich committed Oct 9, 2017
1 parent 0398fd8 commit bbcdf36
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions tests/TestFunctions.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
<?php

use PHPUnit\Framework\TestCase;
use WP_Queue\Queue;

class TestFunctions extends TestCase {

public function setUp() {
WP_Mock::setUp();

global $wpdb;
$wpdb = Mockery::mock( 'WPDB' );;
$wpdb->prefix = "wp_";
}

public function tearDown() {
WP_Mock::tearDown();
}

public function test_wp_queue() {
$this->assertInstanceOf( Queue::class, wp_queue() );
}
}

0 comments on commit bbcdf36

Please sign in to comment.