Skip to content

@rickard2 /gist:3923951
Created

Embed URL

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Unit test for #22233
<?php
function test_multiple_calls() {
$key = rand_str();
$obj1 = new stdClass;
$obj2 = new stdClass;
$obj1->prop = false;
$obj2->prop = false;
$array = array( $obj1, $obj2 );
$this->assertTrue( add_option( $key, $array ) );
$array[0]->prop = true;
$this->assertTrue( update_option( $key, $array ) );
$array[1]->prop = true;
$this->assertTrue( update_option( $key, $array ) );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.