# mlsimport/6.0.4/tests/ActivatorDeactivatorTest.php

MLSImport: IDX Plugin &amp; MLS Plugin for Real Estate Listings, version 6.0.4. 21 lines.

- Page: https://pluginprobe.com/plugins/mlsimport/6.0.4/code/tests/ActivatorDeactivatorTest.php
- Raw: https://pluginprobe.com/plugins/mlsimport/6.0.4/raw/tests/ActivatorDeactivatorTest.php
- Modified: 2025-06-09T07:19:24+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/mlsimport/6.0.4/code/tests/ActivatorDeactivatorTest.php#L10-L20`.

```php
<?php
use PHPUnit\Framework\TestCase;

class ActivatorDeactivatorTest extends TestCase {
    public function test_activate_deletes_transient() {
        global $deleted_transients;
        $deleted_transients = [];
        Mlsimport_Activator::activate();
        $this->assertContains( 'mlsimport_plugin_data_schema', $deleted_transients );
    }

    public function test_deactivate_deletes_options() {
        global $deleted_transients, $deleted_options;
        $deleted_transients = [];
        $deleted_options = [];
        Mlsimport_Deactivator::deactivate();
        $this->assertContains( 'mlsimport_plugin_data_schema', $deleted_transients );
        $this->assertContains( 'mlsimport_admin_options', $deleted_options );
    }
}

```
