File tree Expand file tree Collapse file tree 3 files changed +34
-8
lines changed Expand file tree Collapse file tree 3 files changed +34
-8
lines changed Original file line number Diff line number Diff line change @@ -81,12 +81,4 @@ protected function getUsedTables() : array
81
81
82
82
return $ tableNames ;
83
83
}
84
-
85
- /**
86
- * @return mixed[]
87
- */
88
- protected function _getRelationshipPathArray (): array
89
- {
90
- return [];
91
- }
92
84
}
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace TheCodingMachine \TDBM ;
4
+
5
+ use PHPUnit \Framework \TestCase ;
6
+
7
+ class AbstractTDBMObjectTest extends TestCase
8
+ {
9
+
10
+ public function testGetManyToManyRelationshipDescriptor ()
11
+ {
12
+ $ object = new TDBMObject ();
13
+ $ this ->expectException (TDBMException::class);
14
+ $ this ->expectExceptionMessage ('Could not find many to many relationship descriptor key for "foo" ' );
15
+ $ object ->_getManyToManyRelationshipDescriptor ('foo ' );
16
+ }
17
+ }
Original file line number Diff line number Diff line change
1
+ <?php
2
+
3
+ namespace TheCodingMachine \TDBM ;
4
+
5
+ use PHPUnit \Framework \TestCase ;
6
+
7
+ class TDBMObjectTest extends TestCase
8
+ {
9
+
10
+ public function testJsonSerialize ()
11
+ {
12
+ $ object = new TDBMObject ();
13
+ $ this ->expectException (TDBMException::class);
14
+ $ this ->expectExceptionMessage ('Json serialization is only implemented for generated beans. ' );
15
+ $ object ->jsonSerialize ();
16
+ }
17
+ }
You can’t perform that action at this time.
0 commit comments