ソースを参照

PATCH increment

Maurits van der Schee 7年前
コミット
7ec8dfbc20
1個のファイルの変更0行の追加63行の削除
  1. 0
    63
      tests/tests.php

+ 0
- 63
tests/tests.php ファイルの表示

@@ -684,69 +684,6 @@ class PHP_CRUD_API_Test extends PHPUnit_Framework_TestCase
684 684
 		$test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:01:01.111","visitors":6}');
685 685
 	}
686 686
 
687
-	public function testIncrementEventDateTime()
688
-	{
689
-		$test = new API($this);
690
-		$test->patch('/events/1','{"datetime":"1:00"}');
691
-		$test->expect('1');
692
-		$test->get('/events/1');
693
-		$test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:02:01.111","visitors":6}');
694
-	}
695
-
696
-	public function testIncrementEventDateTimeNumeric()
697
-	{
698
-		$test = new API($this);
699
-		$test->patch('/events/1','{"datetime":120}');
700
-		$test->expect('1');
701
-		$test->get('/events/1');
702
-		$test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:04:01.111","visitors":6}');
703
-	}
704
-
705
-	public function testIncrementEventDateTimeWithZero()
706
-	{
707
-		$test = new API($this);
708
-		$test->patch('/events/1','{"datetime":0}');
709
-		$test->expect('1');
710
-		$test->get('/events/1');
711
-		$test->expect('{"id":1,"name":"Launch","datetime":"2016-01-01 13:04:01.111","visitors":6}');
712
-	}
713
-
714
-	public function testDecrementEventDateTime()
715
-	{
716
-		$test = new API($this);
717
-		$test->patch('/events/1','{"datetime":"-1 0:03:01.001"}');
718
-		$test->expect('1');
719
-		$test->get('/events/1');
720
-		$test->expect('{"id":1,"name":"Launch","datetime":"2015-12-31 12:01:00.110","visitors":6}');
721
-	}
722
-
723
-	public function testIncrementEventName()
724
-	{
725
-		$test = new API($this);
726
-		$test->patch('/events/1','{"name":"? "}');
727
-		$test->expect('1');
728
-		$test->get('/events/1');
729
-		$test->expect('{}');
730
-	}
731
-
732
-	public function testIncrementEventNameWithFalsy()
733
-	{
734
-		$test = new API($this);
735
-		$test->patch('/events/1','{"name":false}');
736
-		$test->expect('1');
737
-		$test->get('/events/1');
738
-		$test->expect('{}');
739
-	}
740
-
741
-	public function testIncrementEventNameWithNumber()
742
-	{
743
-		$test = new API($this);
744
-		$test->patch('/events/1','{"name":43}');
745
-		$test->expect('1');
746
-		$test->get('/events/1');
747
-		$test->expect('{}');
748
-	}
749
-
750 687
 	public function testListTagUsage()
751 688
 	{
752 689
 		$test = new API($this);

読み込み中…
キャンセル
保存