We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1d5cb61 commit fab6866Copy full SHA for fab6866
tests/ActiveRecordTest.php
@@ -407,4 +407,14 @@ public function testAutoIncrement()
407
$this->assertNotNull($customer);
408
$this->assertEquals('user6', $customer->name);
409
}
410
+
411
+ public function testEscapeData()
412
+ {
413
+ $customer = new Customer();
414
+ $customer->email = "the People's Republic of China";
415
+ $customer->save(false);
416
417
+ $c = Customer::findOne(['email' => "the People's Republic of China"]);
418
+ $this->assertSame("the People's Republic of China", $c->email);
419
+ }
420
0 commit comments