public function testVerifyMockObjectsVerifiesWpOptions() { // Prepare $this->setExpectedException('\\WpMock\\Exceptions\\ExpectationFailedException'); WpOptions::expects('foo')->deleted(); // Act $s = new WordPressTestCase(); $s->verifyMockObjects(); }
public function testDeleteOption() { // Prepare WpOptions::prepareOption('foo', 'bar'); WpOptions::expects('foo')->deleted(); // Act $this->assertEquals('bar', \get_option('foo')); \delete_option('foo'); // Assert WpOptions::verify(); }