/** * The ability to overwrite the Lockdown WP Admin Object */ public function testOverwriteLdObject() { add_filter('ld_class', function () { return 'LdProxyObject'; }); $setup = ld_setup_auth(); $this->assertEquals('LdProxyObject', get_class($setup)); $this->assertEquals('WP_LockAuth', get_class($this->object)); }
protected function setUp() { $this->object = ld_setup_auth(); }