Skip to content

Commit e24a482

Browse files
committed
Create cmb2-ajax-embed tests group to exclude them
1 parent 297fabf commit e24a482

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

Gruntfile.js

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ module.exports = function(grunt) {
88
pkg: grunt.file.readJSON( 'package.json' ),
99

1010
phpunit: {
11-
classes: {}
11+
classes: {},
12+
options: {
13+
excludeGroup: 'cmb2-ajax-embed',
14+
}
1215
},
1316

1417
githooks: {

tests/test-cmb-ajax.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010

1111
require_once( 'cmb-tests-base.php' );
1212

13+
/**
14+
* Test the oEmbed functionality
15+
*/
1316
class Test_CMB2_Ajax extends Test_CMB2 {
1417

1518
/**
@@ -62,6 +65,9 @@ public function test_correct_properties() {
6265
$this->assertEquals( $this->oembed_args['object_type'], $this->cmb->object_type() );
6366
}
6467

68+
/**
69+
* @group cmb2-ajax-embed
70+
*/
6571
public function test_get_oembed() {
6672
$args = $this->oembed_args;
6773

@@ -76,6 +82,9 @@ public function test_get_oembed() {
7682
$this->assertOEmbedResult( $args );
7783
}
7884

85+
/**
86+
* @group cmb2-ajax-embed
87+
*/
7988
public function test_values_cached() {
8089
$expected = $this->is_connected() ? array(
8190
'_oembed_611cd8ff569bdf3f2bd77a47ba674606' => '<iframe width="640" height="360" src="https://www.youtube.com/embed/NCXyEKqmWdA?feature=oembed" frameborder="0" allowfullscreen></iframe>',

0 commit comments

Comments
 (0)