This file contains hidden or 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
# app/_graphql/models/company.yml | |
SilverStripe\FrameworkTest\Model\Company: | |
fields: '*' | |
operations: | |
'*': true |
This file contains hidden or 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
Go look under papa's chair. |
This file contains hidden or 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
<?php | |
use SilverStripe\View\ArrayData; | |
class Company extends ArrayData | |
{ | |
public function __construct($id=0, $data=[]) | |
{ | |
if (empty($data)) { |
This file contains hidden or 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
# app/_graphql/types/Folder.yml | |
# This will be merged with vendor/silverstripe/asset-admin/_graphql/types/Folder.yml | |
Folder: | |
fields: | |
'children(filter: FileFilterInput)': | |
type: '[FileInterface]' | |
plugins: | |
sorter: | |
# If we used the array syntax (e.g. [MyFolderTypeResolver, sortChildren]), |
This file contains hidden or 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
#!/bin/bash | |
# This commands runs behat tests. It should be run from your project root. | |
# You need to specify what behat suite you want to run. e.g.: `behatrunner @asset-admin`. | |
# Note that the behat test will run in your current desktop session ... you will see chrome | |
# running and the behat test executed in front of you. | |
# Prequisites: chromedriver installed. silverstripe/recipe-testing installed in your project. | |
# Export envrionment variable | |
export SS_BASE_URL="http://localhost:8080/" |
This file contains hidden or 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
{ | |
"id":"admin\/elemental-area\/schema\/elementForm\/2", | |
"schema":{ | |
"name":"ElementForm_2", | |
"id":"Form_ElementForm_2", | |
"action":"admin\/elemental-area\/ElementForm_2", | |
"method":"POST", | |
"attributes":{ | |
"id":"Form_ElementForm_2", | |
"action":"admin\/elemental-area\/ElementForm_2", |
This file contains hidden or 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
<?php | |
namespace { | |
use SilverStripe\CMS\Controllers\ContentController; | |
use SilverStripe\Forms\FieldList; | |
use SilverStripe\Forms\Form; | |
use SilverStripe\Forms\FormAction; | |
use SilverStripe\Forms\TextField; |
This file contains hidden or 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
const https = require('https'); | |
const schema='tiny'; | |
const forceClear = false; | |
// This is meant to immitate an actual browser | |
// So you need to stick your PHP session ID and your user agent string in here | |
const sessionid = ''; | |
const useragent = 'Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:98.0) Gecko/20100101 Firefox/98.0' |
This file contains hidden or 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
#!/bin/bash | |
# This commands runs behat tests. It should be run from your project root. | |
# You need to specify what behat suite you want to run. e.g.: `behatrunner @asset-admin`. | |
# Note that the behat test will run in your current desktop session ... you will see chrome | |
# running and the behat test executed in front of you. | |
# Prequisites: chromedriver installed. silverstripe/recipe-testing installed in your project. | |
# Export envrionment variable | |
export SS_BASE_URL="http://localhost:8080/" |
NewerOlder