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
99de12d7
Commit
99de12d7
authored
Feb 10, 2008
by
romanb
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changes on the new test suite.
parent
57a5101e
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
17 additions
and
3 deletions
+17
-3
TestTest.php
tests/Orm/Component/TestTest.php
+1
-1
common_users.php
tests/fixtures/forum/common_users.php
+14
-0
Doctrine_OrmTestCase.php
tests/lib/Doctrine_OrmTestCase.php
+2
-2
No files found.
tests/Orm/Component/TestTest.php
View file @
99de12d7
...
...
@@ -5,7 +5,7 @@ class Orm_Component_TestTest extends Doctrine_OrmTestCase
{
protected
function
setUp
()
{
$this
->
loadFixture
(
'forum'
,
'
some
users'
);
$this
->
loadFixture
(
'forum'
,
'
common_
users'
);
}
public
function
testTest
()
...
...
tests/fixtures/
dbal/dummy
.php
→
tests/fixtures/
forum/common_users
.php
View file @
99de12d7
<?php
$fixture
=
array
(
'
tableName'
=>
'dummy
'
,
'
model'
=>
'ForumUser
'
,
'rows'
=>
array
(
array
(
'column1'
=>
'value1'
,
'column2'
=>
'value2'
,
'column3'
=>
'value3'
'id'
=>
1
,
'username'
=>
'romanb'
),
array
(
'column1'
=>
'value4'
,
'column2'
=>
'value5'
,
'column3'
=>
'value6'
'id'
=>
2
,
'username'
=>
'jwage'
)
)
);
\ No newline at end of file
tests/lib/Doctrine_OrmTestCase.php
View file @
99de12d7
...
...
@@ -15,8 +15,8 @@ class Doctrine_OrmTestCase extends Doctrine_TestCase
if
(
!
isset
(
self
::
$_fixtures
[
$uniqueName
]))
{
// load fixture file
$fixtureFile
=
'fixtures'
.
DIRECTORY_SEPARATOR
.
'orm'
.
DIRECTORY_SEPARATOR
.
$
package
.
DIRECTORY_SEPARATOR
.
$
name
.
'.php'
;
$fixtureFile
=
'fixtures'
.
DIRECTORY_SEPARATOR
.
$package
.
DIRECTORY_SEPARATOR
.
$name
.
'.php'
;
require
$fixtureFile
;
self
::
$_fixtures
[
$uniqueName
]
=
$fixture
;
...
...
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