PluginProbe
Stream – Activity Log & Audit Trail / 3.0.3
Stream – Activity Log & Audit Trail v3.0.3
4.4.0 4.3.0 4.2.2 4.2.1 trunk 2.0.1 2.0.2 2.0.3 2.0.4 2.0.5 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1 3.1.1 3.10.0 3.2.0 3.2.1 3.2.2 3.2.3 All 50 releases
stream / tests / tests / test-class-connectors.php

test-class-connectors.php in Stream – Activity Log & Audit Trail 3.0.3, at tests/tests/test-class-connectors.php

39 lines 1.0 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace WP_Stream;
3
4 class Test_Connectors extends WP_StreamTestCase {
5 /**
6 * Holds the connectors base class
7 *
8 * @var Connectors
9 */
10 protected $connectors;
11
12 public function setUp() {
13 parent::setUp();
14
15 $this->connectors = $this->plugin->connectors;
16 $this->assertNotEmpty( $this->connectors );
17 }
18
19 public function test_construct() {
20 $this->assertNotEmpty( $this->connectors->plugin );
21 $this->assertInstanceOf( '\WP_Stream\Plugin', $this->connectors->plugin );
22 }
23
24 public function test_load_connectors() {
25 $this->connectors->load_connectors();
26 $this->assertNotEmpty( $this->connectors->connectors );
27 $this->assertNotEmpty( $this->connectors->contexts );
28 $this->assertNotEmpty( $this->connectors->term_labels['stream_connector'] );
29 $this->assertNotEmpty( $this->connectors->term_labels['stream_context'] );
30 $this->assertNotEmpty( $this->connectors->term_labels['stream_action'] );
31
32 ob_start();
33 $this->plugin->admin->admin_notices();
34 $notices = ob_get_clean();
35
36 $this->assertEmpty( $notices );
37 }
38 }
39