| Conditions | 1 |
| Paths | 1 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 28 | public function test_register_when_content_import_activated() { |
||
| 29 | $blog_id = $this->factory->blog->create(); |
||
| 30 | update_blog_option( $blog_id, 'msls', [ |
||
| 31 | 'activate_content_import' => '1', |
||
| 32 | ] ); |
||
| 33 | MslsRegistry::set_object( MslsOptions::class, null ); |
||
| 34 | |||
| 35 | switch_to_blog( $blog_id ); |
||
| 36 | |||
| 37 | $obj = Service::instance(); |
||
| 38 | |||
| 39 | $this->assertTrue( $obj->register() ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |