Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
doctrine-dbal
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Tomáš Trávníček
doctrine-dbal
Commits
3d736d32
Commit
3d736d32
authored
Jul 05, 2007
by
zYne
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
--no commit message
--no commit message
parent
58f6d356
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
ParserTestCase.php
tests/Relation/ParserTestCase.php
+1
-1
TableTestCase.php
tests/TableTestCase.php
+8
-8
No files found.
tests/Relation/ParserTestCase.php
View file @
3d736d32
...
@@ -190,7 +190,7 @@ class Doctrine_Relation_Parser_TestCase extends Doctrine_UnitTestCase
...
@@ -190,7 +190,7 @@ class Doctrine_Relation_Parser_TestCase extends Doctrine_UnitTestCase
$r
->
bind
(
'Entity'
,
$p
);
$r
->
bind
(
'Entity'
,
$p
);
$rel
=
$r
->
getRelation
(
'Entity'
);
$rel
=
$r
->
getRelation
(
'Entity'
);
$this
->
assertTrue
(
$rel
instanceof
Doctrine_Relation_
Association_Self
);
$this
->
assertTrue
(
$rel
instanceof
Doctrine_Relation_
Nest
);
$rel
=
$r
->
getRelation
(
'EntityReference'
);
$rel
=
$r
->
getRelation
(
'EntityReference'
);
$this
->
assertTrue
(
$rel
instanceof
Doctrine_Relation_ForeignKey
);
$this
->
assertTrue
(
$rel
instanceof
Doctrine_Relation_ForeignKey
);
...
...
tests/TableTestCase.php
View file @
3d736d32
...
@@ -36,7 +36,7 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase
...
@@ -36,7 +36,7 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase
public
function
prepareTables
()
public
function
prepareTables
()
{
{
$this
->
tables
[]
=
'FieldNameTest'
;
$this
->
tables
[]
=
'FieldNameTest'
;
parent
::
prepareTables
();
parent
::
prepareTables
();
}
}
public
function
testFieldConversion
()
public
function
testFieldConversion
()
...
@@ -104,23 +104,23 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase
...
@@ -104,23 +104,23 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase
$this
->
assertTrue
(
$fk
->
getForeign
()
==
$fk
->
getTable
()
->
getIdentifier
());
$this
->
assertTrue
(
$fk
->
getForeign
()
==
$fk
->
getTable
()
->
getIdentifier
());
$fk
=
$this
->
objTable
->
getRelation
(
"Phonenumber"
);
$fk
=
$this
->
objTable
->
getRelation
(
'Phonenumber'
);
$this
->
assertTrue
(
$fk
instanceof
Doctrine_Relation_ForeignKey
);
$this
->
assertTrue
(
$fk
instanceof
Doctrine_Relation_ForeignKey
);
$this
->
assertTrue
(
$fk
->
getTable
()
instanceof
Doctrine_Table
);
$this
->
assertTrue
(
$fk
->
getTable
()
instanceof
Doctrine_Table
);
$this
->
assertTrue
(
$fk
->
getType
()
==
Doctrine_Relation
::
MANY
_COMPOSITE
);
$this
->
assertTrue
(
$fk
->
getType
()
==
Doctrine_Relation
::
MANY
);
$this
->
assertTrue
(
$fk
->
getLocal
()
==
$this
->
objTable
->
getIdentifier
());
$this
->
assertTrue
(
$fk
->
getLocal
()
==
$this
->
objTable
->
getIdentifier
());
$this
->
assertTrue
(
$fk
->
getForeign
()
==
"entity_id"
);
$this
->
assertTrue
(
$fk
->
getForeign
()
==
'entity_id'
);
}
}
public
function
testGetComponentName
()
public
function
testGetComponentName
()
{
{
$this
->
assertTrue
(
$this
->
objTable
->
getComponentName
()
==
"User"
);
$this
->
assertTrue
(
$this
->
objTable
->
getComponentName
()
==
'User'
);
}
}
public
function
testGetTableName
()
public
function
testGetTableName
()
{
{
$this
->
assertTrue
(
$this
->
objTable
->
tableName
==
"entity"
);
$this
->
assertTrue
(
$this
->
objTable
->
tableName
==
'entity'
);
}
}
public
function
testGetConnection
()
public
function
testGetConnection
()
...
@@ -135,8 +135,8 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase
...
@@ -135,8 +135,8 @@ class Doctrine_Table_TestCase extends Doctrine_UnitTestCase
public
function
testSetSequenceName
()
public
function
testSetSequenceName
()
{
{
$this
->
objTable
->
sequenceName
=
"test-seq"
;
$this
->
objTable
->
sequenceName
=
'test-seq'
;
$this
->
assertEqual
(
$this
->
objTable
->
sequenceName
,
"test-seq"
);
$this
->
assertEqual
(
$this
->
objTable
->
sequenceName
,
'test-seq'
);
$this
->
objTable
->
sequenceName
=
null
;
$this
->
objTable
->
sequenceName
=
null
;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment