-
-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
118 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name":"ContentBox Tester Site", | ||
"version":"5.1.1", | ||
"version":"5.2.0", | ||
"author":"Ortus Solutions <[email protected]>", | ||
"shortDescription":"A tester site for developing the ContentBox Modular CMS", | ||
"type":"cms", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
tests/specs/contentbox-web/contentbox/unit/system/CBHelperTest.cfc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
/** | ||
* ContentBox - A Modular Content Platform | ||
* Copyright since 2012 by Ortus Solutions, Corp | ||
* www.ortussolutions.com/products/contentbox | ||
* --- | ||
*/ | ||
component extends="tests.resources.BaseTest" { | ||
|
||
/*********************************** BDD SUITES ***********************************/ | ||
|
||
function run( testResults, testBox ){ | ||
describe( "CB Helper", function(){ | ||
beforeEach( function( currentSpec ){ | ||
setup(); | ||
cbHelper = getInstance( "CBHelper@contentbox" ); | ||
} ); | ||
|
||
it( "can be created", function(){ | ||
expect( cbHelper ).toBeComponent(); | ||
} ); | ||
|
||
describe( "Site related methods", function(){ | ||
it( "can build the site root", function(){ | ||
expect( cbHelper.siteRoot() ).toInclude( "http://127.0.0.1" ); | ||
}); | ||
|
||
it( "can build the site base url", function(){ | ||
expect( cbHelper.siteBaseUrl() ) | ||
.toInclude( "http://127.0.0.1" ) | ||
.notToInclude( "index.cfm" ); | ||
}); | ||
|
||
it( "can build the site name", function(){ | ||
expect( cbHelper.siteName() ).toInclude( "Default Site" ); | ||
}); | ||
|
||
it( "can build the site tag line", function(){ | ||
expect( cbHelper.siteTagLine() ).notToBeEmpty(); | ||
}); | ||
|
||
it( "can build the site description", function(){ | ||
expect( cbHelper.siteDescription() ).notToBeEmpty(); | ||
}); | ||
|
||
it( "can build the site keywords", function(){ | ||
cbHelper.siteKeywords(); | ||
}); | ||
|
||
it( "can build the site email", function(){ | ||
expect( cbHelper.siteEmail() ).notToBeEmpty(); | ||
}); | ||
|
||
it( "can build the site outgoing email", function(){ | ||
expect( cbHelper.siteOutgoingEmail() ).notToBeEmpty(); | ||
}); | ||
}); | ||
|
||
} ); | ||
} | ||
|
||
} |